openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin <kns...@gmail.com>
Subject Restrict collection items
Date Mon, 22 Dec 2008 16:12:48 GMT

Hello All

We are migrating from Hibernate to OpenJPA and we faced the following
problem: it seems there is no alternative to Hibernate's @Where annotation
for collection properties. This annotation allowed us to add arbitrary SQL
for collections loading, e.g. @Where("IS_DELETED=0").
We used this to filter so called "marked as deleted" records.

Could anybody suggest a way to filter collection when loading them from
database?
Using LRS will be too heavyweight solution for us.

Thanks in advance.

-- 
View this message in context: http://n2.nabble.com/Restrict-collection-items-tp1690569p1690569.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Mime
View raw message