openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin <>
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
Using LRS will be too heavyweight solution for us.

Thanks in advance.

View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message