The orm.xml:
Code:
<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_1_0.xsd" version="1.0">
<persistence-unit-metadata>
<persistence-unit-defaults>
<cascade-persist/>
</persistence-unit-defaults>
</persistence-unit-metadata>
</entity-mappings>
If i have the following annotation:
Code:
@OneToOne(cascade = { CascadeType.REFRESH,
CascadeType.REMOVE })
The default persist is ignored.
Can i have a strategy of default persist without the need to add it any time i have an annotation of persist?
This is a problem because it can cause problem when developer add a remove annotation and the remove annoattion cause to the persist to stop working.
Thank you