Use the CVS version of XDoclet for the best version of valueobjects 
(supercedes dataobjects).  They handle Collections of other valueobjects 
to match cmr's.  If you want to add an extra field to a valueobject (or 
dataobject), write your own abstract base class with the field, and use 
the "@ejb.value-object extends=xxx" class level tag so the generated 
valueobject extends your base class.

Hope this helps,
David

--

Tim McAuley wrote:
> Hi,
> 
> How much detail can be used when creating data objects using xdoclet?
> 
> Currently I want a data object with the following:
> 1 -    Exclude the PK field
> 2 -    Add an extra field... which is not a persistence field, or cmr field.
> 
> With regard 2, what I have in the bean is the following:
> 
> CMR fields relating to some possible options... which are represented as
> enums throughout our code (they are needed in the DB too).
> 
> What we have are a getter/setter for the CMR field (not public), and a
> getter/setter for the enum (public) which maps to the CMR field inside the
> bean implementation. I would like the data object to include the enum.
> 
> Any ideas?
> 
> Currently using xdoclet 1.1.2
> 
> Thanks,
> 
> Tim
> 
> 



-------------------------------------------------------
This sf.net email is sponsored by: DEDICATED SERVERS only $89!
Linux or FreeBSD, FREE setup, FAST network. Get your own server 
today at http://www.ServePath.com/indexfm.htm
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to