RE: [Hibernate] Saving Collections from Multiple Sessions

2003-10-20 Thread Urberg, John
That is exactly what I was looking for. Thanks again for a great tool. Regards, John -Original Message- From: Gavin King [mailto:[EMAIL PROTECTED] Sent: Saturday, October 18, 2003 6:06 AM To: Urberg, John Cc: '[EMAIL PROTECTED]' Subject: Re: [Hibernate] Saving Collections fro

Re: [Hibernate] Saving Collections from Multiple Sessions

2003-10-18 Thread Gavin King
You need to upgrade to Hibernate 2.1, and understand the select-before-update mapping attribute. Urberg, John wrote: Hibernate also seems to always assume objects from different sessions are dirty. (I'm using saveOrUpdate() in 1.2.5. Maybe this has changed in 2.*?) Anyway, I need to work aroun

RE: [Hibernate] Saving Collections from Multiple Sessions

2003-10-17 Thread Urberg, John
MAIL PROTECTED] Sent: Thursday, October 16, 2003 3:12 PM To: '[EMAIL PROTECTED]' Subject: RE: [Hibernate] Saving Collections from Multiple Sessions Hibernate also seems to always assume objects from different sessions are dirty. (I'm using saveOrUpdate() in 1.2.5. Maybe this

RE: [Hibernate] Saving Collections from Multiple Sessions

2003-10-16 Thread Urberg, John
Hibernate also seems to always assume objects from different sessions are dirty. (I'm using saveOrUpdate() in 1.2.5. Maybe this has changed in 2.*?) Anyway, I need to work around this to be able to use Hibernate in a 3-tier system. I can only have SQL created when an object is really dirty sinc

Re: [Hibernate] Saving collections...

2003-01-30 Thread jiesheng zhang
--- [EMAIL PROTECTED] wrote: > > You need to learn about the mysteries of the > unsaved-value > attribute :) > > Hibernate looks at the id value to determine if an > object > discovered by cascade is "new" or not. So, if you > have an > object with a Long identifier, set > unsaved-value="null".

Re: [Hibernate] Saving collections...

2003-01-30 Thread Gavin . King
You need to learn about the mysteries of the unsaved-value attribute :) Hibernate looks at the id value to determine if an object discovered by cascade is "new" or not. So, if you have an object with a Long identifier, set unsaved-value="null". Note that another approach is to save() the Item ex