Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [eclipselink-users] Why is getResultList() grouped by Class even when ORDER BY is used?

Thanks a lot James!
That works perfectly!


James Sutherland wrote:
> 
> I think this hint was only added in the 1.1 stream.  You can either
> upgrade to a 1.1 build, or set the property directly on the query.
> 
> ((ObjectLevelReadQuery)((JpaQuery)query).getDatabaseQuery()).setShouldOuterJoinSubclasses(true);
> ((ObjectLevelReadQuery)((JpaQuery)query).getDatabaseQuery()).setIsPrepared(false);
> 

-- 
View this message in context: http://www.nabble.com/Why-is-getResultList%28%29-grouped-by-Class-even-when-ORDER-BY-is-used--tp20937838p21032905.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top