| 
 | ||||||||||
| 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 | appliesToname of the targeted table | 
| Optional Element Summary | |
|---|---|
|  String | commentdefine a table comment | 
|  FetchMode | fetchIf 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 | foreignKeyDefines the Foreign Key name of a secondary table pointing back to the primary table | 
|  Index[] | indexesIndexes | 
|  boolean | inverseIf true, Hibernate will not try to insert or update the properties defined by this join. | 
|  boolean | optionalIf 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 | sqlDeleteDefines a custom SQL delete statement Only applies to secondary tables | 
|  SQLInsert | sqlInsertDefines a custom SQL insert statement Only applies to secondary tables | 
|  SQLUpdate | sqlUpdateDefines 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 | |||||||||