Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated @org.hibernate.annotations.ForeignKey #10

Open
detsam opened this issue Dec 24, 2015 · 0 comments
Open

Remove deprecated @org.hibernate.annotations.ForeignKey #10

detsam opened this issue Dec 24, 2015 · 0 comments

Comments

@detsam
Copy link
Member

detsam commented Dec 24, 2015

This annotation used within org.ametiste.routine.infrastructure.persistency.jpa.data to define foreign key names, cos @JoinColumn and @CollectionTable argument foreignKey is broken.

According to this issue on hibernate https://hibernate.atlassian.net/browse/HHH-8862, one possible solution until Hibernate 6.0 is deprecated @org.hibernate.annotations.ForeignKey annotation.

So, after Hibernate 6.0 release it should be removed and only JPA annotations must be used to define foreign key names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant