Author: max.andersen(a)jboss.com
Date: 2006-12-15 04:55:11 -0500 (Fri, 15 Dec 2006)
New Revision: 10996
Modified:
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/pojo/BasicPOJOClass.java
Log:
rollback broken column defaulting to less broken column defaulting.
Modified:
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/pojo/BasicPOJOClass.java
===================================================================
---
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/pojo/BasicPOJOClass.java 2006-12-15
07:43:10 UTC (rev 10995)
+++
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/pojo/BasicPOJOClass.java 2006-12-15
09:55:11 UTC (rev 10996)
@@ -415,13 +415,13 @@
appendCommonColumnInfo( annotations, column, insertable, updatable );
- if (column.getPrecision() != 0 /*Column.DEFAULT_PRECISION*/) { // the default is
actually 0 in spec
+ if (column.getPrecision() != Column.DEFAULT_PRECISION) { // the default is actually 0
in spec
annotations.append( ", precision=" ).append( column.getPrecision() );
}
- if (column.getScale() != 0 /*Column.DEFAULT_SCALE*/) { // default is actually 0 in
spec
+ if (column.getScale() != Column.DEFAULT_SCALE) { // default is actually 0 in spec
annotations.append( ", scale=" ).append( column.getScale() );
}
- else if (column.getLength() != 255 /*Column.DEFAULT_LENGTH*/){
+ else if (column.getLength() != 255){
annotations.append( ", length=" ).append( column.getLength() );
}
Show replies by date