Hibernate. 2 functions : simpleSave() , saveWithCascade() . can it be done ? and how ?

Posted by Blitzkr1eg on Stack Overflow See other posts from Stack Overflow or by Blitzkr1eg
Published on 2010-05-20T19:58:48Z Indexed on 2010/05/20 20:00 UTC
Read the original article Hit count: 97

Filed under:
|
|

I have a scenario in which i have: A parent class Parent which has some simple properties (int, String, etc) and 2 set of children. Set childrenA; Set childrenB;

Could i make a save function for parent simpleSave(Parent p) that will save/persists only the parent properties in the database and have a function saveWithCascade(Parent p) that will cascade to its children ?

© Stack Overflow or respective owner

Related posts about hibernate

Related posts about cascade