filter « Delete « JPA Q&A





1. many-to-many faulty delete optimization when filter in use    forum.hibernate.org

Hi, I have a problem when deleting from a many-to-many associations in our object model when filters are on. I believe it is due to a faulty optimization or because filters are not applied when writing. Here is the case: I have 2 entities: Group and Role. Group has a many-to-many relationship with Role and Role has an attribute called domain. ...

2. delete object with filter    forum.hibernate.org

Newbie Joined: Wed May 16, 2007 3:57 am Posts: 3 Hi, I define filter in my POJO. This filter works fine if I load a POJO with "findById" or if I get my POJO via Criteria But if I want to delete my POJO, Hibernate doesn't apply my filter it's normal ? How can I apply my filter when I delete ...

3. Filters and One-Shot Delete - Suggestions?    forum.hibernate.org

Hi All, I have a collection of composite elements that I'm using a filter on so that my HQL query only returns the single element I'm interested in, based on a users location. In certain conditions, I remove this element from the collection and force an update. Since the collection is now empty ( it isn't really, there are many other ...