Update of 
/cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/entity/resources
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12561/modules/ejb/src/xdoclet/modules/ejb/entity/resources

Modified Files:
        entity-value-instantiation.xdt 
Log Message:
removed the type attribute for ejb.value-object (using the method's return 
type) (XDT-670)

Index: entity-value-instantiation.xdt
===================================================================
RCS file: 
/cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/entity/resources/entity-value-instantiation.xdt,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** entity-value-instantiation.xdt      18 Sep 2002 19:49:16 -0000      1.5
--- entity-value-instantiation.xdt      3 Apr 2005 10:48:16 -0000       1.6
***************
*** 7,15 ****
           </XDtEjbPersistent:forAllPersistentFields>
           <XDtEjbValueObj:forAllRelations superclasses="true" 
valueobject="<XDtEjbValueObj:currentValueObjectMatch/>">
!           <XDtMethod:ifDoesntHaveMethodTag tagName="ejb:value-object" 
paramName="type">
              if ( <XDtMethod:getterMethod/>() != null )
                 
<XDtEjbValueObj:currentValueObjectAttribute/>.set<XDtEjbValueObj:currentAggregateName/>(
 <XDtMethod:getterMethod/>().get<XDtEjbValueObj:currentAggregateType 
short="true"/>() );
!           </XDtMethod:ifDoesntHaveMethodTag>
!           <XDtMethod:ifHasMethodTag tagName="ejb:value-object" 
paramName="type">
              
<XDtEjbValueObj:currentValueObjectAttribute/>.clear<XDtEjbValueObj:currentAggregateName/>s();
              java.util.Iterator i<XDtEjbValueObj:currentAggregateName/> = 
<XDtMethod:getterMethod/>().iterator();
--- 7,15 ----
           </XDtEjbPersistent:forAllPersistentFields>
           <XDtEjbValueObj:forAllRelations superclasses="true" 
valueobject="<XDtEjbValueObj:currentValueObjectMatch/>">
!           <XDtEjbValueObj:ifIsNotCollection>
              if ( <XDtMethod:getterMethod/>() != null )
                 
<XDtEjbValueObj:currentValueObjectAttribute/>.set<XDtEjbValueObj:currentAggregateName/>(
 <XDtMethod:getterMethod/>().get<XDtEjbValueObj:currentAggregateType 
short="true"/>() );
!           </XDtEjbValueObj:ifIsNotCollection>
!           <XDtEjbValueObj:ifIsCollection>
              
<XDtEjbValueObj:currentValueObjectAttribute/>.clear<XDtEjbValueObj:currentAggregateName/>s();
              java.util.Iterator i<XDtEjbValueObj:currentAggregateName/> = 
<XDtMethod:getterMethod/>().iterator();
***************
*** 18,22 ****
              }
              
<XDtEjbValueObj:currentValueObjectAttribute/>.clean<XDtEjbValueObj:currentAggregateName/>();
!           </XDtMethod:ifHasMethodTag>
           </XDtEjbValueObj:forAllRelations>
  
--- 18,22 ----
              }
              
<XDtEjbValueObj:currentValueObjectAttribute/>.clean<XDtEjbValueObj:currentAggregateName/>();
!           </XDtEjbValueObj:ifIsCollection>
           </XDtEjbValueObj:forAllRelations>
  



-------------------------------------------------------
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

Reply via email to