I want to join two tables using JPQL :
JPQL
SELECT * FROM A LEFT JOIN B ON A.ID = B.A_ID AND B.lng = 'en'
The important part is AND B.lng = 'en'
Is this possible in JPQL ?
JPA 2.0 does not support the ON clause, but the JPA 2.1 project does.
EclipseLink 2.4 supports the ON clause.
See, http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Basic_JPA_Development/Querying/JPQL#ON
Yes, perhaps there is a similar question . However, if your objects are mapped, you must have access to them in the request.
Source: https://habr.com/ru/post/918461/More articles:Executing a function when starting a Ring / Compjure application after deployment - clojurehttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/918457/git-repository-from-github-empty-green-folder&usg=ALkJrhjdI98wFgCoGAq2ngRX7hg8FafW-wWhy is my IBOutlet released under ARC? - iosHow to populate jQuery mobile device list view with JSON data from server? - jsonHow to specify setuptools output directory? - pythonFabricJS canvas gets stuck after adding items - canvasGreen folder in the user interface. Unable to navigate to folder - githubAtypic JPA OneToOne Relationship - javaC code interaction with .C Crashes R - cR: Truncate a string without splitting words - stringAll Articles