Nested collections of composite value objects in Hibernate

Posted by admin on February 24th, 2009 filed in Uncategorized

It doesn’t appear that you can do it.
You can only embed a collection of value objects one layer deep. Nesting deeper will throw a ConcurrentModificationException.

Either move one of your nested tables up to a full Entity (and entity relationship) or denormalize one of your nested tables.
A Speed vs Space trade off for you to make based on your app.


One Response to “Nested collections of composite value objects in Hibernate”

  1. ArianaLalp Says:

    thans for the tip

Leave a Comment