Menu

#279 DataObject template error

cvs
closed
nobody
ejbdoclet (127)
5
2002-10-21
2002-08-30
Matt
No

From a CVS copy of xdoclet. The error occurs in the
templates of
\xdoclet_cvs\xdoclet\modules\ejb\src\xdoclet\modules\ejb\entity\resources.
When the dataobject.xdt envokes the
do-entity-value.xdt template which has the problems.

The do-entity-value.xdt creates a value object accessor
method in a data object but does not check whether the
data object contains accessors for a specific item of
data when populating the value object. In one of my
classes, the value object has more data accessors than
the data object but the get<XDtEjbValueObj> function
doesn't check whether the data object has that data
accessor.

See attachment. Note how the value object is populated
with the following

HostConfigValue.setId( getId() );
HostConfigValue.setName( getName() );
HostConfigValue.setUserId( getUserId() );
HostConfigValue.setHostPatterns(
getHostPatterns() );
HostConfigValue.setRules( getRules() );

But the data object on has getId and getName fields.

Discussion

  • Matt

    Matt - 2002-08-30

    Generated Data Object

     
  • Konstantin Pribluda

    • status: open --> closed
     

Log in to post a comment.