Hello,
I'm new to Hibernate (and also java...). In my current project, I would like to store in my database a tree.
The class containing data, called Node, may have a parent and many children. The order of the children is not important.
My question is, is it possible to store such structure with Hibernate. I guess the answer is yes, so what is the best way to do it ?
Can I do a one-to-many mapping for the childs and a many-to-one for the parent, for the same class ?
Thanks for your help (and sorry for my english).
Olivier Heriveaux
|