I have a system for defining a menu link hierarchy and creating a palette. I have 2 tables: Voceand Voci.
Voceis the name of the menu link and the name of the page name. Vocirepresents a hierarchy Voce. Everyone Vocecan have another Voceas a son (here you do not see the relative code, in any case I use JPA to bind Voce to many Voci). For example, this is the “add many elements” page / link hierarchy:menu --> manage menu --> add many items.
----------
| |
| \/ Voce
| -----------------------
| |id | name |
| -----------------------
| |1 |menu |
| -----------------------
| |2 |manage menu |
| -----------------------
| |3 |add single item |
| -----------------------
| |4 |add many items |
| -----------------------
|
|_____________
| |
| |
Voci | |
-----------------
|id |father|son |
----------------
|1 | 1 | 2 |
----------------
|2 | 2 | 3 |
-----------------
|3 | 2 | 4 |
-----------------
: " ", ? , ( " " ), , .
JPA ( Spring MVC Hibernate), Voci, " ".
.