Re: [Hibernate] saveOrUpdateCopy()

2003-11-10 Thread Gavin King
This will probably be very useful in situations where we do not have full control of the object in question. For example Axis is a very good framework for implementing web services, as well as Java -> XML & XML -> Java binding. However without modification of Axis, the returned Java object will a

[Hibernate] Collection type behaviour - Set versus List

2003-11-10 Thread Andrew Murphy
I have converted a number of one-to-many association mappings that previously used a java.util.Set over to java.util.List, and in the corresponding 'parent' DAO class I now have the accessor and mutator methods using a List. This has introduced unexpected consequences, one being that the collect

Re: [Hibernate] Collection type behaviour - Set versus List

2003-11-10 Thread Gavin King
I think what you really want is a bag ;) Andrew Murphy wrote: I have converted a number of one-to-many association mappings that previously used a java.util.Set over to java.util.List, and in the corresponding 'parent' DAO class I now have the accessor and mutator methods using a List. This has

[Hibernate] Different usage pattern

2003-11-10 Thread Martin Paoletta
Hi, A very common use case for my application involves interacting with the same objects in several request-response cycles. I need to get an object from the repository, make changes to it, and several request-response cycles flush the object to the database. Possible changes include: - Changin

Re: [Hibernate] Different usage pattern

2003-11-10 Thread Christian Bauer
On 10 Nov (19:13), Martin Paoletta wrote: > I understand why this is happening, What I've been missing is something > like a business transaction that can span several r-r cycles, with an > identity map (which should solve the problem of repeated objects) and Re-use the same Session in each R-

[Hibernate] Create an abstract class

2003-11-10 Thread Ransel Lopez
Title: Create an abstract class I have my mapping files from my database. I am using hbm2java to get my java classes, but I want to get them as abstract classes and create other classes wich are extends of this classes already created. An example: {Labor.hbm.xml}         name="l