Package org.hibernate.annotations
Annotation Type JoinColumnOrFormula
@Target({METHOD,FIELD})@Retention(RUNTIME)@Repeatable(JoinColumnsOrFormulas.class)public @interfaceJoinColumnOrFormula
Specifies one element of acomposite join condition involving bothformulas andcolumns. 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 JoinColumncolumnThe column to use in the join condition.JoinFormulaformulaThe 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