User: pazu
Date: 02/04/22 22:09:16
Modified: core/resources/xdoclet/ejb valueobject.j
Log:
Remove aggregate initialization on value object constructor. This
should avoid some common loops in vo references. There are still many
situations where this loop could occur, however (eg: bidirectional
relationships where both sides have vo aggregates).
Revision Changes Path
1.9 +0 -7 xdoclet/core/resources/xdoclet/ejb/valueobject.j
Index: valueobject.j
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/resources/xdoclet/ejb/valueobject.j,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -w -r1.8 -r1.9
--- valueobject.j 3 Apr 2002 08:27:56 -0000 1.8
+++ valueobject.j 23 Apr 2002 05:09:15 -0000 1.9
@@ -45,13 +45,6 @@
<XDtEjbPk:ifDoesntHavePrimkeyField>
pk = new <XDtEjbPk:pkClass/>();
</XDtEjbPk:ifDoesntHavePrimkeyField>
-
- // Initialize all aggregates (non-collection) to contain a not null object
- <XDtEjbValueObj:forAllRelations superclasses="true"
valueobject="<XDtEjbValueObj:valueObjectMatch/>">
- <XDtMethod:ifDoesntHaveMethodTag tagName="ejb:value-object" paramName="type">
- <XDtEjbValueObj:currentAggregateName/> = new
<XDtEjbValueObj:currentAggregateType/>();
- </XDtMethod:ifDoesntHaveMethodTag>
- </XDtEjbValueObj:forAllRelations>
}
public <XDtClass:classOf><XDtEjbValueObj:valueObjectClass/></XDtClass:classOf>(
<XDtEjbPersistent:persistentfieldList
valueobject="<XDtEjbValueObj:valueObjectMatch/>"/> )
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel