Hello Guys,
I have some scenario like:
I have a menu and which can also have one or more submenus and all submenus can also have one or more sub menus.
Code:
Menu---|
|--Submenu1----|--Submenu1A
|--Submenu2----|--Submenu2A
|--Submenu2B--|
|--Submenu2a--|--
Like above and so on.
I want to save all this objects using hibernate. So how can i define my mapping so that i can save all this objects in to database.
Also i want to take care parent for the particular menu and ordering of the menu as well.
I am using hibernate with annotations.
Thanks in advance,
Vishal