mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-03-06 01:39:32 +00:00
HHH-8170 - Deprecate Hibernate @ForeignKey in favor of JPA 2.1 introduced @ForeignKey annotation
This commit is contained in:
parent
33640ae2bd
commit
692959a48e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user