Hi all,
        I have been thinking on how to use castor JDO for my problem. I
have
Been asking same question before, and got answer, but the problem has
changed slightly.

I m working on existing database where following tables are present

Menu Group
ID   Name


Nested_Menu
PARENT_MENU   CHILD_MENU

Menu Items
MENU_ITEM_ID MENU_ITEM_NAME  MENU_GROUP


THE meaning is the following. I have a set of menu groups (nodes) and
set of 
Menu items (leafs).

The Nested menu table lists relationships between menu group, coz one
menu group can be part of another menu group.

A Menu Group can have either as a children a Menu Groups or Menu Items

I have little trouble in figuring out how to write classes to map my
tables
To objects.

I thought of writing following class 

Public class Menu {
   setId()
   setName()
   setMenuItems()
   setChildMenus()
   getId()
   getName()
   getChildMenus()
   getMenuItems() 
}

public class MenuItem {
   setId()
   setName()
   getId()
   getName()
}

But I don't know how to write the proper mapping.xml for menu class,
since
For retrieving child menus I have to look at nested_menu table...

Anyone can help?

Thanx and regards
        marco

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to