|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE) @Retention(value=RUNTIME) public @interface Table
Complementary information to a table either primary or secondary
Required Element Summary | |
---|---|
String |
appliesTo
name of the targeted table |
Optional Element Summary | |
---|---|
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 Only applies to secondary tables |
SQLInsert |
sqlInsert
Defines a custom SQL insert statement Only applies to secondary tables |
SQLUpdate |
sqlUpdate
Defines a custom SQL update statement Only applies to secondary tables |
Element Detail |
---|
public abstract String appliesTo
public abstract Index[] indexes
public abstract String comment
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |