dirty « Collection « JPA Q&A





1. Collections dirty, when reattached with merge()    forum.hibernate.org

Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message cmarti Post subject: Collections dirty, when reattached with merge() Posted: Tue Jul 12, 2005 8:06 am Newbie Joined: Mon Jul 11, 2005 4:36 am Posts: 1 I am using hibernate 3.0.5 and discovered a problem with ...

3. Collections are always dirty, even when they are not.    forum.hibernate.org

I have a bi-directional relationship between A and C. A has a one-to-many with C, and C has a many-to-one with A (*.hbm.xml below). My issue is that the collection of C's is always updated upon saving A, even if the collection was never modified. For example: // session is a Hibernate session String hql = "select a from A a ...

4. Collections Dirty Checking Blues    forum.hibernate.org

@Entity class Category { @Id int id; } @Entity class Ham { @Id int id; @ManyToMany(targetEntity=Category.class, fetch=FetchType.LAZY) @JoinTable( joinColumns={ @JoinColumn(name="hamId") } ...