hibernate-orm
hibernate-orm copied to clipboard
Testcase for HHH-14943
added method testManyToOneNaturalLoadByNaturalId
unless fixed it fails with a org.hibernate.exception.SQLGrammarException: could not prepare statement
N.B.: to make things easy, I had to convert the fetch-type to citizen from EAGER to LAZY in NaturalIdOnManyToOne.java Otherwise the query in question includes a join statement and thus remained parseable despite being wrong.
Thanks for your pull request!
This pull request does not follow the contribution rules. Could you have a look?
❌ All commit messages should start with a JIRA issue key matching pattern HHH-\d+
↳ Offending commits: [613062928093db98775d82e5967b709b5fe6cd3a]
› This message was automatically generated.
Fixed
Thank you very much for solving this issue Andrea!
@pb00067 you are more than welcome and thanks a lot for the reproducer!
@dreab8 May I ask you if you can also take a look at HHH-14944 in the next weeks? I opened it the same day as HHH-14943