I have no idea how to interpret your test case. First it uses Hibernate 4.3, not 5.0. Second I cannot even tell where/how it pulls in 4.3 because that is buried somewhere in some Spring pom apparently.
At this point I am inclined to call this a user error. I have a test using nothing but Hibernate and all the assertions based on your claims actually pass. If you want to simplify your test down to a non-Spring deal that actually illustrates the problem I am happy to take a look. You can use the test I am about to push relative to this issue as a basis.
Looking at your model I did notice that you erroneously leave off the mappedBy. I do wonder if that affects your results.
|