This commit is contained in:
Redkale
2017-01-17 13:37:34 +08:00
parent da0ff24af6
commit 4071a5d165
5 changed files with 31 additions and 23 deletions

View File

@@ -67,6 +67,7 @@ public @interface Table {
* annotations and constraints entailed by primary key mappings.
* <p>
* Defaults to no additional constraints.
* @return UniqueConstraint[]
*/
UniqueConstraint[] uniqueConstraints() default {};
@@ -76,6 +77,7 @@ public @interface Table {
* to specify an index for a primary key, as the primary key
* index will be created automatically.
*
* @return indexes
* @since Java Persistence 2.1
*/
Index[] indexes() default {};