persistence@glassfish.java.net

Re: Changing the id of a managed entity

From: Farrukh Najmi <farrukh_at_wellfleetsoftware.com>
Date: Fri, 07 Aug 2009 16:09:41 -0400

Many thanks! This did the trick. Thanks to all for your kind help.

Marina Vatkina wrote:
> Hi Farrukh,
>
> You can delete the old one and insert the new, copying over the field
> values.
>
> Regards,
> -marina
>
> 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