This one time, at band camp, Marco Mistroni said:

MM>            I have following problem.
MM>In my app I have a menu of items which consists of submenu of other
MM>items..
MM> 
MM>The main menu items are listed in a table named  'mainmenu' which
MM>contains menuname and menuid.
MM> 
MM>The submenus are listed in another table which contains the submenu id,
MM>the submenu name, and the menuid of the menu to which
MM>The submenu belogs to.
MM> 
MM>I want to retrieve each menu as a data object which in turns contains
MM>submenus as object.
MM> 
MM>I wanted to ask if it was possible to use CastorJDO to retrieve those
MM>relationships...
...
MM>I want , after doing all the processing to obtain a Collection of Menu
MM>objects, which in turns contains SubMenu objects..
MM>So far I have used castorJDO only where one object was mapped to one
MM>table..

Marco,

This is exactly what Castor JDO does for you. I suggest that you take
a look at the JDO examples in src/examples/jdo. These can be found in
the src downloads or in CVS. These examples contain a small graph of
objects on which Castor JDO performs basic CRUD (create, read, update
delete). Become familiar with these examples and you'll soon understand
how to tackle your own situation.

Bruce
-- 
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

The Castor Project 
http://www.castor.org/

Apache Geronimo 
http://incubator.apache.org/projects/geronimo.html

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

Reply via email to