hibernate-orm icon indicating copy to clipboard operation
hibernate-orm copied to clipboard

Testcase for HHH-14943

Open pb00067 opened this issue 2 years ago • 1 comments

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.

pb00067 avatar Nov 30 '21 15:11 pb00067

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

dreab8 avatar Sep 20 '22 09:09 dreab8

Thank you very much for solving this issue Andrea!

pb00067 avatar Sep 20 '22 10:09 pb00067

@pb00067 you are more than welcome and thanks a lot for the reproducer!

dreab8 avatar Sep 20 '22 11:09 dreab8

@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

pb00067 avatar Sep 20 '22 12:09 pb00067