parent
fd5de56c19
commit
5ef46f04d8
|
@ -13,6 +13,9 @@ import java.lang.annotation.Retention;
|
||||||
|
|
||||||
import org.hibernate.Incubating;
|
import org.hibernate.Incubating;
|
||||||
|
|
||||||
|
import jakarta.persistence.ManyToMany;
|
||||||
|
import jakarta.persistence.OneToMany;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allows to specify the target of a foreign-key using a "target attribute" as opposed to
|
* Allows to specify the target of a foreign-key using a "target attribute" as opposed to
|
||||||
* join column(s). E.g.
|
* join column(s). E.g.
|
||||||
|
@ -55,6 +58,9 @@ import org.hibernate.Incubating;
|
||||||
* }
|
* }
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
* @apiNote As Hibernate allows {@linkplain OneToMany#mappedBy()} and {@linkplain ManyToMany#mappedBy()} to refer
|
||||||
|
* to basic and embedded attributes already, this annotation is mainly useful for mapping to-one associations.
|
||||||
|
*
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*/
|
*/
|
||||||
@Target({ElementType.FIELD,ElementType.METHOD,ElementType.ANNOTATION_TYPE})
|
@Target({ElementType.FIELD,ElementType.METHOD,ElementType.ANNOTATION_TYPE})
|
||||||
|
|
Loading…
Reference in New Issue