Hello,
I am getting a "java.lang.IllegalArgumentException: Can not set java.util.TreeSet field Message.children to java.util.HashSet" when persisting a Message object with a parent/children relationship:
@ManyToOne private Message parent; @OneToMany(mappedBy = "parent") private TreeSet<Message> children;
Seems that objectdb is converting TreeSet into HashSet? Why? http://www.objectdb.com/java/jpa/entity/types says TreeSet is supported...
Thanks for pointers to the solution! I need the TreeSet to have a well defined traversal order when iterating through the Set.
Best regards, Benjamin