Rick,
Thank you a lot for your help.
I am wondering if this can be done programmatically AND at runtime (After
the entityManager is created).

Thank you.



On Fri, Jun 13, 2014 at 9:18 AM, Rick Curtis <curti...@gmail.com> wrote:

> You can enable cascade persist globally via the jpa defined
> persistence-unit-metadata defauls element in the orm.xml See the snippet
> below:
>
> <entity-mappings
>   xmlns="http://java.sun.com/xml/ns/persistence/orm";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm
> orm_2_0.xsd"
>   version="2.0">
>     <persistence-unit-metadata>
>         <persistence-unit-defaults>
>             <cascade-persist/>
>         </persistence-unit-defaults>
>     </persistence-unit-metadata>
> ...
> </entity-mappings>
>
> Thanks,
> Rick
>
> On Thu, Jun 12, 2014 at 9:09 PM, Mansour Al Akeel <
> mansour.alak...@gmail.com
> > wrote:
>
> > Is the a way to enable cascade persist globally and pro grammatically
> using
> > an EntityManager instance ??
> >
> >
> > Thank you.
> >
>
>
>
> --
> *Rick Curtis*
>

Reply via email to