Hi all comunity,
Currently, I develop a CMS using several Java technologies as final work to complete my studies, but there's a relation I don't know how to model with Hibernate. As "good CMS" it allows users design a website. Each website has 1..* menus, and each menu has several menu items. Besides, a Menu Item is an abstract class because it can be an item that points to an url, an item that points to an existing content in the website or an item that list contents by category. Perhaps, the image below get this idea clear.
To model a list of menu items I use a list tag and to model an abstract class I use a joined-subclass tag.
The problem is that I have no idea about modeling the Menu Items List and Menu Item abstract class at the same time.
I expected been clear. Please help me, I am really lost.
Thnks very much.