Von: [EMAIL PROTECTED] im Auftrag von Don Laidlaw
Gesendet: Fr 18.06.2004 18:05
An: [EMAIL PROTECTED]
Betreff: [Xdoclet-user] Value Object PK field missing
XDoclet 1.2.1, JDK 1.4.2, WinXP
I defined a CMP bean
with
primkey-field="productNoticeHeadID"
In
the @ejb.bean tag. The property is declared as:
/**
* Get the ProductNoticeHeadID (pk
field)
*
* @return
java.lang.Integer
*
*
@ejb.persistence column-name="ProductNoticeHeadID"
*
@ejb.interface-method view-type="both"
*/
public abstract java.lang.Integer
getProductNoticeHeadID();
The CMP class generated does not populate
the productNoticeHeadID
property of the Value object. It specifically
skips this one! Is there
a specific reason why the value object would
not return a value for that
property? Yes, it is the primary key field,
but I do need to have it
populated.
Note that this is not a problem
when the primkey-field is not specified
and a PK class is generated. In
that case the value object DOES include
the property.
Strange.
Any help out
there?
Thanks,
-Don
-------------------------------------------------------
This
SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the
experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 -
July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf
Priority Code
NWMGYKND
_______________________________________________
xdoclet-user
mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user