Get rid of @Column(type=...) which was always an abomination.
This commit is contained in:
@@ -52,11 +52,6 @@ public @interface Column
|
||||
*/
|
||||
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.)
|
||||
*/
|
||||
|
||||
@@ -119,7 +119,7 @@ public abstract class SQLBuilder
|
||||
Column column = field.getAnnotation(Column.class);
|
||||
|
||||
ColumnDefinition coldef = (column != null) ?
|
||||
new ColumnDefinition(nullify(column.type()), column.nullable(),
|
||||
new ColumnDefinition(null, column.nullable(),
|
||||
column.unique(), nullify(column.defaultValue())) :
|
||||
new ColumnDefinition();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user