Re: how isDetached(object) works?

2009-06-06 Thread ashish paliwal
Hi, Say we have 2 entities person and Address where person class has an object of class Address. Now, consider the case where I am persisting the person object. There can be three mutually exclusive cases: - If the corresponding Address object is persisted using the same entity manager

how isDetached(object) works?

2009-06-05 Thread Anurag Rai
Hi , I want to understand why isDetached is using find. I thought it would be as simple as reading a boolean variable which is set if detach is caaled on that particular entity. Furthermore i am not getting the comment below: // not a part of Query result load. Look into the slices