Hi folks,
(Note: I have posted this into the users forum too because I'm not really sure it's just an annotations problem or what)
I have defined this filter
class Product {
....
@OneToMany(mappedBy="target", cascade=CascadeType.ALL)
@Filter(name="productReviewFilter", condition="filtered = false")
private List<Review> reviews = new ArrayList<Review>();
....
}
but one trying to enable it for the session, I get:
session.enableFilter("productReviewFilter");
Exception in thread "main" org.hibernate.HibernateException: No such filter configured [productReviewFilter]
Am I missing something?
TIA
Cheers,
Carlos
|