| @Gail Badner First of all, sorry for wasting your time on converting my test case, I followed that "Bug reports should generally be accompanied by a test case!" link, it goes nowhere. I`ve reproduced that error with your project, but there is a catch. Hibernate generates unique constraint on SecondEntity.guid that defeats the whole purpose of that mapping, which is: SecondEntity.guid not being an @Id. I was unable to disable that constratint so I made additional import script with drop constraint statment. All this got me thinking, maybe Hibernate does not support inverseJoinColumns without unique constraint on referenced column by design? If so, I shouldnt bother you with another issue. Proper test case - hibernate-orm-5.rar |