level « Delete « JPA Q&A





1. Hibernate: Clean collection's 2nd level cache while cascade delete items    stackoverflow.com

I have a problem Hibernate does not update 2nd level cache for a collection of items which are subject of cascade removal.

Details

Assume we have an object Parent which has Parent.myChildren collection ...

2. Hibernate Second Level Cache In Case of Soft Delete    stackoverflow.com

Read operations are very high as compare to insert/update/delete for master data module. We are using JDBC for read,write and update operations till now. We are doing soft delete (Marking IS_DELETED ...

4. Database Level Cascade Delete causes delete to fail    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp [b]Hibernate version:[/b] 2.1 [b]Full stack trace of any exception that occurs:[/b] Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) when committing a delete [b]Name and version of the database you are using:[/b] MSSQL 2000, I-Net Opta driver [b]The generated SQL (show_sql=true):[/b] 2005-05-09 16:23:27,562 [main] DEBUG net.sf.hibernate.SQL ...

5. Delete Collection Item - Second Level Cache    forum.hibernate.org

6. problem with database level cascade delete    forum.hibernate.org

I'm having trouble with the hibernate @OnDelete annotation to generate a database level cascade delete constraint using ant HibernateToolTask on a @OneToMany relationship, and i'm beginning to go square eyed trying to fix this Using Hibernate Annotations 3.4.0, connecting to an Oracle 11g Database, using the org.hibernate.dialect.Oracle10gDialect. I've specified a one way relationship from the Parent to the Child as follows ...

7. Delete from Second Level Cache    forum.hibernate.org

As I understand, if the second level cache is configured, an object is placed in it immediately after reading from a database. An object in the second level cache outlives the session in which it was retrieved. So the question is when an object is deleted from the second level cache? I understand that I can explicitly evict it from the ...