HHH-8170 - Deprecate Hibernate @ForeignKey in favor of JPA 2.1 introduced @ForeignKey annotation

This commit is contained in:
Steve Ebersole 2013-04-10 16:24:43 -05:00
parent 33640ae2bd
commit 692959a48e

View File

@ -34,10 +34,11 @@
/**
* Define the foreign key name.
*
* Prefer the JPA 2.1 introduced {@link javax.persistence.ForeignKey} instead.
* @deprecated Prefer the JPA 2.1 introduced {@link javax.persistence.ForeignKey} instead.
*/
@Target({FIELD, METHOD, TYPE})
@Retention(RUNTIME)
@Deprecated
public @interface ForeignKey {
/**
* Name of the foreign key. Used in OneToMany, ManyToOne, and OneToOne