[jboss-user] [EJB 3.0] - EJB3 and Filter Annotation

sellerjd do-not-reply at jboss.com
Wed Jul 19 15:52:33 EDT 2006


I'm wondering if EJB3 has, or will have, support for the Filter annotation as in Hibernate (@Filter).

Reason:
I'm looking for a non-hibernate specific solution to the following problem:

FooTable
-- fooName
-- fooType
-- fooActive_Y_N

I'd like every query of the FooTable to filter results and only return those records that have fooActive_Y_N == Y.  I'd like this to take place throughout the system and not build the criteria with this Restriction every time, nor use QueryByExample with the property set.  I'd like the DAO to know nothing about this except in cases where non-active records are requested.

I believe I can implement an interceptor to accomplish this, but was wondering if there was a way to do the same with a simple annotation in EJB3, as there is in Hibernate.

Thanks much

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959308#3959308

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959308



More information about the jboss-user mailing list