Hi,

is there somewhere documentation on how value objects (match in particular) work? I 
haven't found much yet (only http://users.pandora.be/ees/xdoclet/ and this one isn't 
too wordy in VOs either).

Anyway here is what I would like to know: How can I generate multiple Value Objects 
from one bean, where some fields are shared by multiple VOs. Here is some skeletal 
example code:

...
* @ejb.bean name="..."
...

 * @ejb.value-object name="Animal" match="animal" instantiation="eager"
 * 
 * @ejb.value-object name="Dog" match="dog" instantiation="eager"
 *
 * @ejb.value-object name="Bird" match="bird" instantiation="eager"
 *

...

 * @ejb.value-object match="animal, dog, bird"
 * @ejb.persistent-field
 * @ejb.pk-field
 **/
    public abstract int getId();
    public abstract void setId(int pId);
...

 * @ejb.value-object match="bird"
 * @ejb.persistent-field
 **/
    public abstract String getFeatherType();
    public abstract void setFeatherType(String featherType);
...

 * @ejb.value-object match="doc"
 * @ejb.persistent-field
 **/
    public abstract int getNumberOfTeeth();
    public abstract void setNumberOfTeeth(int numberOfTeeth);
...

but it does not work, I have tried all combinations that came up my mind, but nothing 
seems to generate:

AnimalValue (id)
Bird (id, featherType)
Dog (id, numberOfTeeth)


any help is greatly appreciated,
Andreas


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to