Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Object Relational Mapping and the fly likes Db driven menu system Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Db driven menu system" Watch "Db driven menu system" New topic
Author

Db driven menu system

Luke Gee
Greenhorn

Joined: Apr 11, 2012
Posts: 5
I want to create a database driven menu system that will populate a menu depending on the current users permissions. I have the idea of a table that would hold the collection name and another that maps sub menus to this parent menu item in collection. I would then map user types to the collection, defining whether they have access to this. The problem is im new to this kind of concept and I cant quite grasp how this would map to objects in java and just wondered if anyone could point me into the right direction.

Any help would be much appreciated.

Cheers
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3816

So you need to know how ORM (from Hibernate) works?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
James Sutherland
Ranch Hand

Joined: Oct 01, 2007
Posts: 553
See,

http://en.wikibooks.org/wiki/Java_Persistence

TopLink : EclipseLink : Book:Java Persistence : Blog:Java Persistence Performance
 
 
subject: Db driven menu system
 
Similar Threads
Collection Filtering
IMPOTANT: Drop down Menu disappears partially behind system tray in windows
Action form that contains a collection of an unkown length
Googlism!
Why & how to build map of maps?