Package org.hibernate.annotations
Annotation Type SecondaryRow
-
@Target(TYPE) @Retention(RUNTIME) @Repeatable(SecondaryRows.class) public @interface SecondaryRow
Specifies how the row of aSecondaryTable
should be managed.- Since:
- 6.2
- See Also:
SecondaryTable
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
optional
Unless disabled, specifies that no row should be inserted in the secondary table if all the columns of the secondary table would be null.boolean
owned
If enabled, Hibernate will never insert or update the columns of the secondary table.String
table
The name of the secondary table, as specified bySecondaryTable.name()
.
-
-
-
Element Detail
-
table
String table
The name of the secondary table, as specified bySecondaryTable.name()
.- Default:
- ""
-
-
-
optional
boolean optional
Unless disabled, specifies that no row should be inserted in the secondary table if all the columns of the secondary table would be null. Furthermore, an outer join will always be used to read the row. Thus, by default, Hibernate avoids creating a row containing only null column values.- Default:
- true
-
-