| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public 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. |
| public ForeignKey | foreignKey()
Deprecated
as a consequence of
Defines the Foreign Key name of a secondary table pointing back to the primary table.
ForeignKey being deprecated.
|
| public Index[] | |
| public boolean | |
| public 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. |
| public SQLDelete | |
| public SQLInsert | |
| public SQLUpdate |
| appliesTo | back to summary |
|---|---|
| public String appliesTo() name of the targeted table. | |
| comment | back to summary |
|---|---|
| public String comment() define a table comment. | |
| fetch | back to summary |
|---|---|
| public 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. If set to select then Hibernate will use a sequential select for a secondary table defined on a subclass, which will be issued only if a row turns out to represent an instance of the subclass. Inner joins will still be used to retrieve a secondary defined by the class and its superclasses. Only applies to secondary tables | |
| foreignKey | back to summary |
|---|---|
| public ForeignKey foreignKey()
Deprecated as a consequence of Defines the Foreign Key name of a secondary table pointing back to the primary table. | |
| indexes | back to summary |
|---|---|
| public Index[] indexes()
Deprecated as a consequence of Indexes. | |
| inverse | back to summary |
|---|---|
| public boolean inverse() If true, Hibernate will not try to insert or update the properties defined by this join. Only applies to secondary tables | |
| optional | back to summary |
|---|---|
| public 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. Only applies to secondary tables | |
| sqlDelete | back to summary |
|---|---|
| public SQLDelete sqlDelete() Defines a custom SQL delete statement. Only applies to secondary tables | |
| sqlInsert | back to summary |
|---|---|
| public SQLInsert sqlInsert() Defines a custom SQL insert statement. Only applies to secondary tables | |
| sqlUpdate | back to summary |
|---|---|
| public SQLUpdate sqlUpdate() Defines a custom SQL update statement. Only applies to secondary tables | |