openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <>
Subject Re: OpenJPA - two-sided relation between objects Issue
Date Wed, 13 Aug 2008 22:37:04 GMT

  The use case you have presented can be supported with some twists. Follow
the steps described below:
Approach A:
1. Remove all phones from Address, but remember them
2. flush() the Address.
3. Database will now assign identity to Address
4. Add the phones back and set each phone's identifier to the newly assigned
identifier of the Address
5. commit

  Did you try this?
  If yes, what did you see?
View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message