Thanks for explaining,
I had already added a separate call to setId() in the
ejbCreate(pValueObject) method to solve the problem.
setTrackTypeValue( pValueObject);
setId(pValueObject.getId());
So this is consistent with your explanation, the Id will only be set when
the entity bean is created.
Subsequent calls to setTrackTypeValue(pValueObject) will not set the Id
field.
Michel.
Marcus Brito
<[EMAIL PROTECTED]> To:
[EMAIL PROTECTED]
Sent by: cc:
[EMAIL PROTECTED] Subject: Re:
[Xdoclet-user] Normal behaviour? : ValueObject ID-field not set.
ceforge.net
12/02/2003 15:45
Please respond to
xdoclet-user
[EMAIL PROTECTED] wrote:
> XDoclet generates a xxxCMP that inherits from the EntityBean and that
> implements the setTrackTypeValue() method.
>
> Is it normal behaviour that the ID field is not "set" in this method?
> This makes sense perhaps for auto-generated PK's, but what if I want to
> specify the PK myself?
Primary keys should *never* change after the object is created, weather
the key is auto generated or not. That's why the setXXXValue() methods
don't set key fields.
--
MB
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
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