Archive for August 2012

Hibernate: How to insert OneToMany children by cascade

I needed a way to insert an entity with a new joined (children) entity together. One way to do it is by separate the actions (e.g. to save the joined entity first and then to save the main entity). However, Hibernate support inserting a new entity with new joined entity. I would like to present […]