saveorUpdate « Map « JPA Q&A

1. Hibernate SaveOrUpdate with Delete

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

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

@Table(name = "DISPUNIT")

@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

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)

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

5. many-to-one and saveOrUpdate on child objects

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()

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

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 ...