[hibernate-issues] [Hibernate-JIRA] Commented: (HB-681) TimestampType returning java.sql.Timestamp - problems with equal
Craig Baker (JIRA)
noreply at atlassian.com
Thu Sep 14 01:09:25 EDT 2006
[ http://opensource.atlassian.com/projects/hibernate/browse/HB-681?page=comments#action_24430 ]
Craig Baker commented on HB-681:
--------------------------------
Sun have patched the Timestemp in 1.5.0_07 see http://bugs.sun.com/bugdatabase/view_bug.do
> TimestampType returning java.sql.Timestamp - problems with equal
> ----------------------------------------------------------------
>
> Key: HB-681
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HB-681
> Project: Hibernate2
> Type: Task
> Versions: 2.1.1
> Reporter: Michael Gloegl
>
>
> When using type="timestamp" to persist properties of type java.util.Date, Hibernate will set the property using a java.sql.Timestamp (subclass of java.util.Date). This might lead to very subtile bugs in user code, because equals() for Date/Timestamp is not symmetric.
> This is acutally a problem with the java api, but probably a explicit solution in Hibernate should be considered somehow, eg. creating two types, one for mapping java.sql.Timestamp and another one for mapping java.sql.Date
> This has been discussed in the Forum at: http://forum.hibernate.org/viewtopic.php?t=927602
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list