-->
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: Exotic relation
PostPosted: Wed Aug 16, 2006 6:24 pm 
Newbie

Joined: Wed Aug 16, 2006 5:53 pm
Posts: 1
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.

Image

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.


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.