--
You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-or...@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
In terms of how to deal with detached objects, you can actually call
both enitySave() and entityMerge() on a detached object to put it back
into the current Hibernate session. entitySave() will sometimes throw
an error, however (if the same object is already loaded into the
session), and entityMerge() won't work with transient objects. These
are just some of the reasons why avoiding detached objects is the best
approach imo.
Regarding the concurrency issue, yes, if you have concurrency checking
turned on (which most people do not), if you try to merge a stale
object you'll get an exception, which is probably what you want, as
you've got concurrency checking turned on.
I hope that helps,
Bob
On Mon, Dec 13, 2010 at 9:53 PM, Henry Ho <henry...@gmail.com> wrote:
> --
> You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
> To post to this group, send email to cf-or...@googlegroups.com.
> To unsubscribe from this group, send email to cf-orm-dev+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
>
>
--
Bob Silverberg
www.silverwareconsulting.com