Hi,
I want to set the cascade persist option for my entire entity model.
According to JPA spec I should be able to do this by incluing <cascade-persist/> in my ORM.xml file.
I set up my ORM.xml file as show below, include in my jar beside the persistence.xml file, i.e. META-INF and I do not see any cascade persist behaviour. I only see cascade persists when I include the annotations.
any ideas what could be wrong?
More details below:
Hibernate version:
Annotations: Version: 3.2.0 CR1
Core: version 3.2 cr2
EntityManager3.2.0 CR1
Mapping documents:
<?xml version="1.0" encoding="UTF-8" ?>
<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
http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
version="1.0">
<persistence-unit-metadata>
<persistence-unit-defaults>
<cascade-persist/>
</persistence-unit-defaults>
</persistence-unit-metadata>
</entity-mappings>