How to create a JPA query with LEFT OUTER JOIN

The Solution to How to create a JPA query with LEFT OUTER JOIN is


Write this;

 SELECT f from Student f LEFT JOIN f.classTbls s WHERE s.ClassName = 'abc'

Because your Student entity has One To Many relationship with ClassTbl entity.

~ Answered on 2012-04-18 04:45:17


Most Viewed Questions: