attempted to assign id from null one-to-one property [DATAJPA-1304] #1628
Comments
Oliver Drotbohm commented I don't see anything that's Spring Data specific here. The second |
Chursin Evgeny commented yes, i report it to hibernate too. https://hibernate.atlassian.net/browse/HHH-12436 |
Oliver Drotbohm commented Thanks, I'm gonna link the issue for reference. The Hibernate team usually reacts much quicker if you can provide a test case that doesn't include anything Spring as they can then rule out that the issue has something to do with a different framework. However, let's how they respond |
Chursin Evgeny commented i have reproduce error on pure hibernate. Spring-Data is innocent. also i provide a test case as pull request ... but im not sure that i done everthing correct. its my first time :D greate thanx for your replay ! :) |
Jens Schauder commented This is a Hibernate issue |
Daniel Silveira commented This affects our adoption of spring-boot 2.0, as it uses hibernate 5.2.14+ Is there a workaround on this? |
Oliver Drotbohm commented I don't think there's anything in Spring Boot that particularly requires 5.2.14. Have you tried setting Boots |
Daniel Silveira commented I saw here (https://mvnrepository.com/artifact/org.springframework.boot/spring-boot/2.0.0.RELEASE) that spring-boot has dependency on hibernate-core 5.2.14.Final |
Daniel Silveira commented I just tried setting <properties>
<hibernate.version>5.2.13</hibernate.version>
</properties> But build shows
Later i'll look more into it. Thanks anyway |
Vanitha R commented Daniel Silveira how did you workaround this?. When i set the hibernate version to 5.2.13 I'm also facing the same issue. I don't want to downgrade to a lower version of spring boot for this, since its a greenfield project, wanted to start with the latest stable version |
Chursin Evgeny opened DATAJPA-1304 and commented
catch very unexpected exception while updgrading hibernate version 5.2.12 -> 5.2.15
in scenario when update object with non null OneToOne property.
i can`t undestend whos to blame.
i create test project to easy reproduce this case - https://github.com/evg345/spring-data-hibernate-bug
Once again, this code works with Hibernate 5.2.12 , 5.2.13
and fail when change Hibernate version in pom file to 5.2.14 , 5.2.16
I expect that is bug somewhere inside Spring-Data , but it can hides in Hibernate :(
Affects: 2.0.5 (Kay SR5)
Reference URL: https://github.com/evg345/spring-data-hibernate-bug/blob/master/src/test/java/bugreport/OneToOnePropertyTest.java
Issue Links:
("is duplicated by")
0 votes, 6 watchers
The text was updated successfully, but these errors were encountered: