Update of
/cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/entity/resources
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6644/modules/ejb/src/xdoclet/modules/ejb/entity/resources
Modified Files:
valueobject.xdt
Log Message:
fixed dupplicate empty constructor and compilation error in toString() method
when a value-object has a empty persistent fields list (XDT-1373)
Index: valueobject.xdt
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/entity/resources/valueobject.xdt,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -r1.36 -r1.37
*** valueobject.xdt 9 May 2005 21:10:25 -0000 1.36
--- valueobject.xdt 9 May 2005 21:54:44 -0000 1.37
***************
*** 79,82 ****
--- 79,83 ----
</XDtEjbValueObj:ifGeneratePKConstructor>
+ <XDtEjbPersistent:ifHasAtLeastOnePersistentField
valueobject="<XDtEjbValueObj:valueObjectMatch/>">
public
<XDtClass:classOf><XDtEjbValueObj:valueObjectClass/></XDtClass:classOf>(
<XDtEjbPersistent:persistentfieldList
valueobject="<XDtEjbValueObj:valueObjectMatch/>"/> )
{
***************
*** 91,94 ****
--- 92,96 ----
</XDtEjbPk:ifDoesntHavePrimkeyField>
}
+ </XDtEjbPersistent:ifHasAtLeastOnePersistentField>
/**
***************
*** 454,458 ****
--- 456,462 ----
StringBuffer str = new StringBuffer("{");
+ <XDtEjbPersistent:ifHasAtLeastOnePersistentField
valueobject="<XDtEjbValueObj:valueObjectMatch/>">
str.append(<XDtEjbPersistent:persistentfieldNameValueList
valueobject="<XDtEjbValueObj:valueObjectMatch/>" superclasses="true"/>);
+ </XDtEjbPersistent:ifHasAtLeastOnePersistentField>
<XDtEjbBmp:ifUseSoftLocking>
str.append(",version=");
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel