Hi,
Hibernate version:
3.2.2
In my application I've used the composite-pattern this way:
There is an interface Rights which aggregates itself with two concrete implementations Group and User, i.e. a Group can contain several other groups and users. A user is always a leaf-node in this tree.
Googling for "composite pattern with hibernate" gave me
http://www.researchkitchen.co.uk/blog/archives/57 and of course
http://www.hibernate.org/86.html, but I still just have no Idea how to deal with this two implementations on the one hand and the interface on the other hand.
I always want to deal with the Rights-Interface within my application, so I think I have to map the interface itself in anyway, too.
Any help would be appreciated.
Regards,
Ace