Hi, another newbie question about JDO.
In my mapping file, I can specify <class>es with simple type <field>s
successfully. However, I was wondering how to do the following two
things:
1) Specify that a referenced class (also in the mapping) should
contribute values to the current row of the table. For example, say I
have a class called "MonsterHead" that references a class called "Eyes".
Then I have a table called "Monster". In the mapping, I want to specify
that both "MonsterHead" and "Eyes" (which is referenced in MonsterHead
via a get method) contribute to the values in a single row of the
"Monster" table.
2) Specify that an array of a referenced class (also in the mapping)
should be inserted into the table. Say I have a class called
"MonsterHead" that references an array of a class called
"MonsterFriends". Then I have both a "Monster" table and a
"MonsterFriends" table. When a "MonsterHead" is put into the database, I
want all of its friends to be put there too.
Are either of these things possible?
thanks,
jeff
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev