delete « Fetch « JPA Q&A





1. Hibernate: how to fetch only not-logically deleted objects    stackoverflow.com

Nearly every table in our database has a FK to the Auditing table which logs created, updated and deleted status (date and username). We mapped the auditing table to the Auditing class ...

2. inner join fetch causing unexpected deletes    forum.hibernate.org

Hibernate version: 2.1.6 Mapping documents: Generated with xdoclet Code between sessionFactory.openSession() and session.close():
Using Springframework's OpenSessionInViewInterceptor Full stack trace of any exception that occurs: Name and version of the database you are using: MySQL 4.0x I have an owning object called QualificationReviewSession. It owns a collection of QualificationReviewSessionUsers -- which is just a many-to-many mapping table containing a foreign key to ...

3. subselect fetch fails after a delete    forum.hibernate.org

Hibernate version: 3.1 Yesterday I started to use fetch="subselect" to solve an N+1 join problem I have with a report.. First of all, I would REALLY like to see this select style available as an override option so that it's not always on. That said, I ran into a problem... I queried a set of entities by foreign key "from MyThing ...