This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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 "";
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user