User: vharcq
Date: 02/04/03 00:05:29
Modified: core/resources/xdoclet/ejb entitypk.j
Log:
Bug 532832
I changed hashCode as not transient
Did the same for toString value
Reset hashcode if setter is called
Revision Changes Path
1.23 +3 -2 xdoclet/core/resources/xdoclet/ejb/entitypk.j
Index: entitypk.j
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/resources/xdoclet/ejb/entitypk.j,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -w -r1.22 -r1.23
--- entitypk.j 2 Apr 2002 12:14:07 -0000 1.22
+++ entitypk.j 3 Apr 2002 08:05:29 -0000 1.23
@@ -18,8 +18,8 @@
<XDtClass:ifDoesntHaveClassTag tagName="ejb:pk" paramName="ver-uid"
superclasses="false">
static final long serialVersionUID = <XDtEjbPk:serialVersionUID/>;
</XDtClass:ifDoesntHaveClassTag>
- transient private int _hashCode = Integer.MIN_VALUE;
- transient private StringBuffer _toStringValue = null;
+ private int _hashCode = Integer.MIN_VALUE;
+ private StringBuffer _toStringValue = null;
<XDtEjbPersistent:forAllPersistentFields superclasses="false" only-pk="true">
public <XDtMethod:methodType/> <XDtMethod:propertyName/>;
@@ -49,6 +49,7 @@
public void <XDtMethod:setterMethod/>(<XDtMethod:methodType/>
<XDtMethod:propertyName/>)
{
this.<XDtMethod:propertyName/> = <XDtMethod:propertyName/>;
+ _hashCode = Integer.MIN_VALUE;
}
</XDtEjbPersistent:forAllPersistentFields>
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel