|
Hi,
I've got a question of transitive persistence that i would like to pose, to help me using hibernate. I've searched in other posts, and i can't find a solution to my problem.
My question is:
1 - I've two objects (A and B), and A is associated with B in a relation many-to-one. I suppose that, when i create a instance A, B must be alreadey created and for A be related to B, i must do "A.setB(B)".
But, when i want updated the instance A, should i do "A.setB(B)" for A maintains the relation?
Sincerily,
Pedro
|