Hi Farrukh,
The best way I know of is to "simply" write a JDBC program to make the
change without involving JPA in the code. The tricky part is to notify
caches. JPA implementations should be able to handle this kind of
change transparently to application code.
Craig
On Aug 7, 2009, at 8:46 AM, Farrukh Najmi wrote:
> Hi Guys,
>
> I have a situation where I need to change the id of a manged entity
> within my transaction.
> I realize this seems questionable. What is the best way to
> accomplish this?
>
> Thanks for your help.
>
> --
> Regards,
> Farrukh
>
> Web: http://www.wellfleetsoftware.com
>
>
Craig L Russell
Architect, Sun Java Enterprise System
http://db.apache.org/jdo
408 276-5638 mailto:Craig.Russell_at_sun.com
P.S. A good JDO? O, Gasp!
- application/pkcs7-signature attachment: smime.p7s