Get rid of @Column(type=...) which was always an abomination.

This commit is contained in:
Par Winzell
2009-10-29 16:33:34 +00:00
parent 4e390ecb0e
commit 116679ebfe
2 changed files with 1 additions and 6 deletions
@@ -52,11 +52,6 @@ public @interface Column
*/ */
boolean nullable () default false; boolean nullable () default false;
/**
* The SQL type that is used when generating the DDL for the column.
*/
String type() default "";
/** /**
* The column length. (Applies to String and byte[] columns.) * The column length. (Applies to String and byte[] columns.)
*/ */
@@ -119,7 +119,7 @@ public abstract class SQLBuilder
Column column = field.getAnnotation(Column.class); Column column = field.getAnnotation(Column.class);
ColumnDefinition coldef = (column != null) ? ColumnDefinition coldef = (column != null) ?
new ColumnDefinition(nullify(column.type()), column.nullable(), new ColumnDefinition(null, column.nullable(),
column.unique(), nullify(column.defaultValue())) : column.unique(), nullify(column.defaultValue())) :
new ColumnDefinition(); new ColumnDefinition();