db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Giulio Vezzelli" <giulio.vezze...@infolog.it>
Subject Torque BaseObjects' sons have wrong hashCodes ?!
Date Tue, 16 Mar 2004 10:37:41 GMT
I'm trying to use hashCode() to identify business objects generated by
Let's say I'm using an object called User.
When the object is instantiated as a New User(), if I check hashCode()
immediately after instantiation the integer returned is different every time
I call hashCode() !!!
If I use check a User object obtained via retrieveByPK, the hashCode()
function is coherent. I checked a bit through Torque's source, but I can't
see why the hashCode is always different... looks like I get the hashCode
for a newly instantied object every time.
Any suggesitions ?!?!? 
Giulio Vezzelli
Infolog S.r.l.
Via Alfieri, 28
Modena - 41100
Telefono : +39-059-822446
Sito web : http://www.infolog.it <http://www.infolog.it/> 
E-mail : giulio.vezzelli@infolog.it

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message