Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate: cascade save problem  RSS feed

Sebastiaan Kortleven
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I've got my own Query object which consists of several WhereItem objects, which can consist of a Subquery object which consists of a Query object (not the same as the original), and so on..


Query -> WhereItem -> Subquery -> Query -> ...

When saving the main Query, I woul like all the rest to be saved too..
I've set the cascade option to all for all collections, but I still get a TransientObjectException..

What am I doing wrong?

Here's part of the exception:

Here are the relevant parts of the mapping files:

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!