persistence@glassfish.java.net

Re: How to dynamically add entity beans to a persistent unit

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Thu, 15 Nov 2007 09:27:29 -0800

There is no spec-supported way of doing it. I don't know if there are providers
who can support this feature.

regards,
-marina

Farrukh Najmi wrote:
> Farrukh Najmi wrote:
>
>>
>> Is it possible in JPA to dynamically add POJO's for entity beans to an
>> existing and active persistent unit?
>> If so, what is the best way to do this?
>>
> Just to be clear, I meant how to add new entity bean classes (not
> instances) to an active PU so they can be persisted and queried using
> that instance of the PU.
> Thanks.
>