@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Table
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
appliesTo
name of the targeted table.
|
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
comment
define a table comment.
|
FetchMode |
fetch
If set to JOIN, the default, Hibernate will use an inner join to retrieve a
secondary table defined by a class or its superclasses and an outer join for a
secondary table defined by a subclass.
|
ForeignKey |
foreignKey
Defines the Foreign Key name of a secondary table pointing back to the primary table.
|
Index[] |
indexes
Indexes.
|
boolean |
inverse
If true, Hibernate will not try to insert or update the properties defined by this join.
|
boolean |
optional
If enabled, Hibernate will insert a row only if the properties defined by this join are non-null
and will always use an outer join to retrieve the properties.
|
SQLDelete |
sqlDelete
Defines a custom SQL delete statement.
|
SQLInsert |
sqlInsert
Defines a custom SQL insert statement.
|
SQLUpdate |
sqlUpdate
Defines a custom SQL update statement.
|
public abstract Index[] indexes
public abstract ForeignKey foreignKey
public abstract FetchMode fetch
public abstract boolean inverse
public abstract boolean optional
public abstract SQLInsert sqlInsert
public abstract SQLUpdate sqlUpdate
public abstract SQLDelete sqlDelete
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.