No...
The _guid property is private. I've overridden the
toString() method to return a _guid.toString().
Thanx for the thought.
-----Original Message-----
From: Rafael Alves Chaves [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 10:20 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] Primary Key warnings
Norton,
Your PK equals method:
public boolean equals(Object obj) {
GUID compareTo = (GUID)obj;
if (_guid.toString().equals(compareTo.toString())) {
return(true);
}
return(false);
}
The correct would be:
...
if (_guid.toString().equals(compareTo._guid.toString())) {
...
Correct?
Rafael
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user