hi, On Tue, 14 Jan 2003 21:55:49 -0500, "Viktor Szathmary" <[EMAIL PROTECTED]> said:
> i found out more after playing around for a littlebit... it turns out one > of the properties in Bar is a java.util.Date... if i remove that property > from the mapping, everything's cool, it does 2 inserts as expected.. > however, with the Date there, i believe an equality check fails (i assume > hibernate internally represents it as a java.sql.Timestamp so the > comparison is screwed)... i took a glance at TimestampType.java, seems to me that it assumes that the nanosecond portion will be zero when initially creating the Timestamp( date.getTime() )... that's unfortunately not the case... dates are evil in java (and in general too :) so perhaps a t.setNanos(0) would do after the date->timestamp conversion, or changing the equals(x,y) implementation.... viktor -- [EMAIL PROTECTED] -- http://fastmail.fm - Same, same, but different... ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel