How to create a HQL query in Java form:

 `select new map(A.a1, B.b1) from A left join B on A.a2=B.b2` 

Where can B not exist? Now returns the result only when B exists.

  • Show the entity classes and the code in which you make the request. I could not repeat your problem, without any problems I received mappings containing null. - Sergey Gornostaev
  • Everything's Alright. Sorry, the request was incorrectly compiled - there was also a "where B.b3 = smth" condition. Thank you) - Konstantin Zhurov

0