This commit is contained in:
Redkale
2016-11-04 09:29:30 +08:00
parent f57d8325b3
commit 786d25678b
2 changed files with 12 additions and 24 deletions

View File

@@ -103,17 +103,6 @@ public @interface Column {
*/ */
boolean updatable() default true; boolean updatable() default true;
/**
* (Optional) The SQL fragment that is used when
* generating the DDL for the column.
* <p>
* Defaults to the generated SQL to create a
* column of the inferred type.
*
* @return String
*/
String columnDefinition() default "";
/** /**
* (Optional) The name of the table that contains the column. * (Optional) The name of the table that contains the column.
* If absent the column is assumed to be in the primary table. * If absent the column is assumed to be in the primary table.

View File

@@ -24,7 +24,8 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
* Specifies the primary table for the annotated entity. Additional * Specifies the primary table for the annotated entity. Additional
* tables may be specified using SecondaryTable or SecondaryTables annotation. * tables may be specified using SecondaryTable or SecondaryTables annotation.
* *
* <p> If no <code>Table</code> annotation is specified for an entity * <p>
* If no <code>Table</code> annotation is specified for an entity
* class, the default values apply. * class, the default values apply.
* *
* <pre> * <pre>
@@ -43,21 +44,19 @@ public @interface Table {
/** /**
* (Optional) The name of the table. * (Optional) The name of the table.
* <p> Defaults to the entity name. * <p>
* Defaults to the entity name.
*
* @return String * @return String
*/ */
String name() default ""; String name() default "";
/** (Optional) The catalog of the table. /** (Optional) The catalog of the table.
* <p> Defaults to the default catalog. * <p>
* Defaults to the default catalog.
*
* @return String * @return String
*/ */
String catalog() default ""; String catalog() default "";
/** (Optional) The schema of the table.
* <p> Defaults to the default schema for user.
* @return String
*/
String schema() default "";
} }