-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Saving list of same object under same object
PostPosted: Thu Dec 20, 2012 7:47 am 
Newbie

Joined: Sun Mar 14, 2010 3:37 am
Posts: 4
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.