HHH-18060 - HbmXmlTransformer

apiNOte on @PropertyRef
This commit is contained in:
Steve Ebersole 2024-06-12 05:14:53 -05:00
parent fd5de56c19
commit 5ef46f04d8
1 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,9 @@ import java.lang.annotation.Retention;
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
* join column(s). E.g.
@ -55,6 +58,9 @@ import org.hibernate.Incubating;
* }
* </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
*/
@Target({ElementType.FIELD,ElementType.METHOD,ElementType.ANNOTATION_TYPE})