Hello,
I'd like to know if it is at all possible to do a collection mapping of a class to the same class.
Eg, I have a class named Category, and this class contains a list of other categories (which are in fact subcategories).
Would Hibernate manage some how to achieve such a mapping? If not, why? Is it conceptually stupid? Should I just subclass Category by another class (Subcategory), but that would mean two SQL tables.
I have read the documentation and spent quite some time googling, but I did not find anything, so I 'll be happy to take any link or help (I am new to Hibernate).
Jean-Noël
|