-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Support for Hibernate ORM 5.0 [SPR-11694] #16316
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
Comments
Juergen Hoeller commented Committed support for Hibernate 5.0 Beta 2: full native support in a To be upgraded to Hibernate 5.0 RC1 before Spring Framework 4.2 goes GA. Juergen |
Petar Tahchiev commented Hi I'm facing issues with spring and hibernate5 beta2 - I get a duplicate foreignkey exception. I spoke with the hibernate team and they proved that when using only hibernate api then this exception does not occur. I tried to build against the latest snapshot but I get the same exception - only when using spring-orm. Here's my repository: |
Petar Tahchiev commented BTW, according to hibernate the whole foreign key logic has been heavily rewritten, so maybe we need to update the |
Juergen Hoeller commented We're not doing anything unusual in that area, as far as I'm aware. I'm surprised that a foreign key exception would only arise when using it with Spring... Does a plain non-Spring Hibernate EntityManager setup work there? Since even if it works with a native Hibernate Session, it could still be a bug in Hibernate's EntityManager implementation... That said, if it is indeed a Spring-only problem, I'll have a look at it ASAP. Juergen |
Petar Tahchiev commented Hi Juergen, thanks for your feedback. Yes, indeed, this appears to happen only when we have spring involved. The sample project contains a test-case from Steve Ebersole from hibernate which works fine (no spring involved there). |
Juergen Hoeller commented Looking at the test case, it seems that the problem isn't even in the Session or EntityManager but rather in the SchemaUpdate tool? Even more surprising that the presence of Spring makes a difference there. I'll see what I can find out... Juergen |
Oliver Drotbohm commented Adding a build profile for [Hibernate 5.0 for Spring Data JPA|DATAJPA-703] has revealed the newly written schema updater quite brittle. We've found the foreign key creation being broken which was fixed for Beta 2. Current snapshots nonetheless are already broken again with the schema creation being re-triggered. To me it doesn't feel like Spring being involved causing the issue here but Hibernate not correctly analyzing that schema to update during multiple |
Juergen Hoeller opened SPR-11694 and commented
Hibernate 5.0 is in beta as of April 2015. Let's track Hibernate 5.0 for support in Spring Framework 4.2 - in a separate "orm.hibernate5" package, as usual.
Issue Links:
Referenced from: commits 94f9a0b, f9c3910, cf0a916
0 votes, 9 watchers
The text was updated successfully, but these errors were encountered: