saveorUpdate « Map « JPA Q&A





1. Hibernate SaveOrUpdate with Delete    stackoverflow.com

I am attempting to delete an item from a collection in a Hibernate Java object using the saveOrUpdate function on the parent object. Update and Inserts work properly, but objects are ...

2. Hibernate Inheritance Save : saveOrUpdate and Merge generate an extreme number of SELECT's    stackoverflow.com


my classes are in the following structure . the super class:

@EntityListeners(OnSaveListeners.class)
@Table(name = "DISPUNIT")
@Entity


@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class DistributedUnit  extends AbstractEntity {
    private static CompositeMetaData  metadata = (CompositeMetaData)MetaData.forName(DistributedUnit.class);

  ...

3. Problem when saveOrUpdate new child on existing parent    forum.hibernate.org

Newbie Joined: Wed Mar 10, 2010 12:03 pm Posts: 7 Hi ... I'm a noob with hibernate. Learning it now, but something weird is happening ... have two entities .. Media and Rubric (of media) And I wrote two beans for them and configs etc ... ant Test class which fails and that's why I'm asking for your help ! My ...

4. ManytoMany SaveOrUpdate saves just last entry (Java)    forum.hibernate.org

Hi at all, i have there an "many-to-many" mapping: Code:

5. many-to-one and saveOrUpdate on child objects    forum.hibernate.org

Author Message thenken Post subject: many-to-one and saveOrUpdate on child objects Posted: Thu Oct 02, 2003 5:34 pm Newbie Joined: Thu Oct 02, 2003 5:12 pm Posts: 1 I have read the doc and the forum and am looking for a little help. I have three classes BookshelfItem, MemeberProfile, and BookDetail. On all three I want to specify a ...

6. one-to-one mapping error when saveOrUpdate()    forum.hibernate.org

7. saveOrUpdate() method problem in Many-to-Many mapping    forum.hibernate.org

Hi All, I have a problem with "Many-To-Many" mapping. Scenario : 1.Person (emp_no, emp_name) 2.Role (role_no, role_name) 3.Persons_Roles (intersection). ( id (surrogate key), emp_no(fk), role_no(fk) ) (hbm files I have given inverse="true" casecade="save-update" - in both the set definition ) Everything is fine with the operations except saveOrUpdate() method. When I'm updating the records, it 'deletes' existing records and 'insert' a ...