the entitymanager provides method getreference().
is there similar in jpql or event better within criteriabuilder, return list of entities references?
actual use id , process each entity in new transaction. want avoid entities, because mess memory usage.
if use references, type safe , memory overhead okay.
thanks!
you like
select idfield yourentity ..
and in criteria query, use yourentity.idfield_
value.
Comments
Post a Comment