|
From: Christopher G. S. II (JIRA) <no...@at...> - 2006-05-02 22:12:30
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-302?page=comments#action_22957 ] Christopher G. Stach II commented on ANN-302: --------------------------------------------- According to the PFD, it says it MUST be specified for Date and Calendar, but clearly it states the default is TIMESTAMP (java.sql.Timestamp). 9.1.18 Temporal Annotation A Temporal annotation specifies that a persistent property or field should be persisted as a temporal type. The Temporal annotation may be used in conjunction with the Basic annotation. The TemporalType enum defines the mapping for temporal types. The temporal type must be specified for persistent fields or properties of type java.util.Date and java.util.Calendar. public enum TemporalType { DATE, //java.sql.Date TIME, //java.sql.Time TIMESTAMP //java.sql.Timestamp } > @Temporal should work on java.sql.Timestamp properties > ------------------------------------------------------ > > Key: ANN-302 > URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-302 > Project: Hibernate Annotations > Type: Bug > Components: binder > Versions: 3.1beta9 > Reporter: Christopher G. Stach II > Assignee: Emmanuel Bernard > > -- 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 |