Where do u commit the transaction? I hope it is not after saving of A. Could
you confirm if B and A are persisted and committed seperately and
independent of each other.
Thanks
Hari
On Jul 19, 2010 9:15 AM, "pbadn" wrote:
I am having a problem that is confusing me.
I have two entities, A and B
I am having a problem that is confusing me.
I have two entities, A and B. Both have user-assigned numeric ids and
A refers to an instance of B. So I have a process like this:
B b = new B();
b.setId(1);
// save b
A a = new A();
a.setId(1);
B b2 = DAL.getBById(1);
a.setB(b2);
// save a
DAL.g