Package org.hibernate.annotations
Annotation Type JoinColumnOrFormula
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) @Repeatable(JoinColumnsOrFormulas.class) public @interface JoinColumnOrFormula
Specifies one element of a composite join condition involving both formulas and columns. One offormula()
orcolumn()
must be specified, but not both. If a composite join condition involves only columns, this annotation is unnecessary.- See Also:
JoinColumnsOrFormulas
,JoinFormula
,JoinColumn
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description JoinColumn
column
The column to use in the join condition.JoinFormula
formula
The formula to use in the join condition.
-
-
-
Element Detail
-
formula
JoinFormula formula
The formula to use in the join condition.- Default:
- @org.hibernate.annotations.JoinFormula(value="", referencedColumnName="")
-
-
-
column
JoinColumn column
The column to use in the join condition.- Default:
- @jakarta.persistence.JoinColumn
-
-