Update of /cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/entity/resources In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12885/modules/ejb/src/xdoclet/modules/ejb/entity/resources
Modified Files: entity-value.xdt Log Message: removed the type attribute for ejb.value-object (using the method's return type) (XDT-670) Index: entity-value.xdt =================================================================== RCS file: /cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/entity/resources/entity-value.xdt,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -r1.16 -r1.17 *** entity-value.xdt 5 Oct 2004 23:03:10 -0000 1.16 --- entity-value.xdt 3 Apr 2005 10:49:35 -0000 1.17 *************** *** 7,11 **** <XDtEjbValueObj:forAllRelations superclasses="true" valueobject="*"> ! <XDtMethod:ifHasMethodTag tagName="ejb:value-object" paramName="type"> public void add<XDtMethod:methodTagValue tagName="ejb:value-object" paramName="members-name"/>(<XDtEjbValueObj:currentAggregateType/> added) <XDtMethod:ifHasMethodTag tagName="ejb:value-object" paramName="compose"> --- 7,11 ---- <XDtEjbValueObj:forAllRelations superclasses="true" valueobject="*"> ! <XDtEjbValueObj:ifIsCollection> public void add<XDtMethod:methodTagValue tagName="ejb:value-object" paramName="members-name"/>(<XDtEjbValueObj:currentAggregateType/> added) <XDtMethod:ifHasMethodTag tagName="ejb:value-object" paramName="compose"> *************** *** 119,123 **** </XDtMethod:ifHasMethodTag> ! </XDtMethod:ifHasMethodTag> </XDtEjbValueObj:forAllRelations> --- 119,123 ---- </XDtMethod:ifHasMethodTag> ! </XDtEjbValueObj:ifIsCollection> </XDtEjbValueObj:forAllRelations> *************** *** 166,170 **** <XDtEjbValueObj:forAllAggregates superclasses="true" valueobject="<XDtEjbValueObj:currentValueObjectMatch/>"> { ! <XDtMethod:ifDoesntHaveMethodTag tagName="ejb:value-object" paramName="type"> <XDtClass:pushClass value="<XDtEjbValueObj:currentRelationBeanClass/>"> // Checks for null aggregate --- 166,170 ---- <XDtEjbValueObj:forAllAggregates superclasses="true" valueobject="<XDtEjbValueObj:currentValueObjectMatch/>"> { ! <XDtEjbValueObj:ifIsNotCollection> <XDtClass:pushClass value="<XDtEjbValueObj:currentRelationBeanClass/>"> // Checks for null aggregate *************** *** 187,192 **** <XDtMethod:setterMethod/>(null); } ! </XDtMethod:ifDoesntHaveMethodTag> ! <XDtMethod:ifHasMethodTag tagName="ejb:value-object" paramName="type"> <XDtComment:comment> Here we take what has changed (update/add/remove) inside the VO collection and --- 187,192 ---- <XDtMethod:setterMethod/>(null); } ! </XDtEjbValueObj:ifIsNotCollection> ! <XDtEjbValueObj:ifIsCollection> <XDtComment:comment> Here we take what has changed (update/add/remove) inside the VO collection and *************** *** 206,210 **** remove<XDtMethod:methodTagValue tagName="ejb:value-object" paramName="members-name"/>(o); } ! </XDtMethod:ifHasMethodTag> } </XDtEjbValueObj:forAllAggregates> --- 206,210 ---- remove<XDtMethod:methodTagValue tagName="ejb:value-object" paramName="members-name"/>(o); } ! </XDtEjbValueObj:ifIsCollection> } </XDtEjbValueObj:forAllAggregates> *************** *** 212,216 **** // Anonymous block to allow variable declations without conflicts { ! <XDtMethod:ifDoesntHaveMethodTag tagName="ejb:value-object" paramName="type"> <XDtClass:pushClass value="<XDtEjbValueObj:currentRelationBeanClass/>"> // Checks for null composition --- 212,216 ---- // Anonymous block to allow variable declations without conflicts { ! <XDtEjbValueObj:ifIsNotCollection> <XDtClass:pushClass value="<XDtEjbValueObj:currentRelationBeanClass/>"> // Checks for null composition *************** *** 231,236 **** relation.set<XDtEjbValueObj:currentAggregateName/>(valueHolder.get<XDtEjbValueObj:currentAggregateName/>()); } ! </XDtMethod:ifDoesntHaveMethodTag> ! <XDtMethod:ifHasMethodTag tagName="ejb:value-object" paramName="type"> <XDtComment:comment> Here we take what has changed (update/add/remove) inside the VO collection and --- 231,236 ---- relation.set<XDtEjbValueObj:currentAggregateName/>(valueHolder.get<XDtEjbValueObj:currentAggregateName/>()); } ! </XDtEjbValueObj:ifIsNotCollection> ! <XDtEjbValueObj:ifIsCollection> <XDtComment:comment> Here we take what has changed (update/add/remove) inside the VO collection and *************** *** 256,260 **** remove<XDtMethod:methodTagValue tagName="ejb:value-object" paramName="members-name"/>(o); } ! </XDtMethod:ifHasMethodTag> } </XDtEjbValueObj:forAllComposes> --- 256,260 ---- remove<XDtMethod:methodTagValue tagName="ejb:value-object" paramName="members-name"/>(o); } ! </XDtEjbValueObj:ifIsCollection> } </XDtEjbValueObj:forAllComposes> ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel