Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/mapping
In directory sc8-pr-cvs1:/tmp/cvs-serv17247/sf/hibernate/mapping
Modified Files:
Column.java
Log Message:
fixed a problem with HibernateService
added convenience createBlob()
improved some logging
added SessionFactory.close()
Index: Column.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/mapping/Column.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Column.java 2 Feb 2003 06:41:05 -0000 1.7
--- Column.java 22 Feb 2003 06:42:07 -0000 1.8
***************
*** 72,78 ****
}
! public int getSQLType(Mapping pi) throws MappingException {
try {
! return getType().sqlTypes(pi)[ getTypeIndex() ];
}
catch (Exception e) {
--- 72,78 ----
}
! private int getAutoSqlType(Mapping mapping) throws MappingException {
try {
! return getType().sqlTypes(mapping)[ getTypeIndex() ];
}
catch (Exception e) {
***************
*** 90,94 ****
public String getSqlType(Dialect dialect, Mapping pi) throws HibernateException {
! return (sqlType==null) ? dialect.getTypeName( getSQLType(pi), getLength() ) : sqlType;
}
--- 90,94 ----
public String getSqlType(Dialect dialect, Mapping pi) throws HibernateException {
! return (sqlType==null) ? dialect.getTypeName( getAutoSqlType(pi), getLength() ) : sqlType;
}
|