1. saveOrUpdate and delete-orphan for 1:M forum.hibernate.orgNewbie Joined: Wed Nov 05, 2008 1:17 pm Posts: 5 I have a unidirectional 1:M Parent-Child relationship mapped as entities with "all,delete-orphan" set as the cascade style. I am using Spring's HibernateTemplate for testing. I have a unit test that simulates sending a Parent with a set of Child objects to a Flex client and removes one of the children from ... |
2. why :( :( .When call to saveOrUpdate it delete obj before forum.hibernate.orginsert. I am going to cry. I dont know what to do with this. i have A with many to one with B . cascade is all B has many to many (idbag)with C. B and C PK is assigned by the application A_DAO:: Code: Session session = TransactionManager.getConnection(); ... |
3. delete() and saveOrUpdate() causes HibernateOptimisticLockin forum.hibernate.orgAll, I am new to Hibernate (version 3.2.3.ga). I need to make changes to an exsisting application which was written with Hibernate. The appl is working fine before I added my change. In a nutshell, there are two objects DMStagingTable and DMStagingIndex. DMStagingTable._indexes is a set of DMStagingIndex instances. My objective is to delete DMStagingIndex objects and update its persistent counter ... |