parent « Delete « JPA Q&A





1. Delete/Replace Childrem parent gets deleted also?????    forum.hibernate.org

Beginner Joined: Thu Jul 21, 2005 10:28 am Posts: 21 Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.0.5 Mapping documents: Code: ...

2. Unable to delete a parent in many-to-one    forum.hibernate.org

I have a many-to-one relationship where I would like to delete the parent object and leave the children as orphans. My test case is failing, however, and complaining about batch updates. WARNING: SQL Error: 0, SQLState: null Jul 10, 2006 10:37:29 AM org.hibernate.util.JDBCExceptionReporter logExceptions SEVERE: failed batch Jul 10, 2006 10:37:29 AM org.hibernate.event.def.AbstractFlushingEventListener performExecutions SEVERE: Could not synchronize database state with ...

3. one to many parent object deletion    forum.hibernate.org

hi I have made a parent to child relation shio one to many. now i am doig delete insertion on that on a specific condition. i have deleted the parent object then its child also deletes but after this when new record inseerted ,then autogenerated number not coming properly. when inserting the record first time (A) paren table id ,name 1 ...

4. On delete parent    forum.hibernate.org

Hi, I am using the newest Hibernate (hbm) on PostgreSQL. The app I am developing should be modular, ha have for example in core "Article" and in module "ArticleRanking" the article should not know, that it is ranked (core must be independent on modules), what I need to do, is to have simple rule in mapping, that if the parent (Article) ...