users@glassfish.java.net

JPA @OneToMany filters

From: <forums_at_java.net>
Date: Fri, 18 Mar 2011 11:42:13 -0500 (CDT)

Hi everybody,

I've seen JPA gives options with @OneToMany in order to limit the retrieved
elements with those available in another table, using @JoinTable annotation.

I'd like to know if one can limit the retrieved list to elements having a
specific column set to NULL. Actually, I'm using this kind of column in order
say when the row has been disabled or not ; so I want to avoid those
elements when I call a getElements() from an Entity.

Thanks for all for help.


--
[Message sent by forum member 'laps']
View Post: http://forums.java.net/node/783212