Like this:
Entity User {
String name
- @Address home cascade="all-delete-orphan"
}
ValueObject Address {
String street
}
Documentation:
http://fornax-platform.org/cp/display/fornax/3.+Advanced+Tutorial+%28CSC%29#3.AdvancedTutorial%28CSC%29-AdditionalReferenceFeatures
jsmoni wrote:
>
> I do have another question: I have a many-one mapping (User->Address) and
> when I save user, I would like address to be saved. In hibernate, I know
> that its a straightforward CascadeType specification in the mapping file
> for that column.
> How would I be able to specify the same in DSL?
>
--
View this message in context:
http://www.nabble.com/Hibernate-mapping-in-Sculptor-tp14729015s17564p14742247.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer