[hibernate-issues] [Hibernate-JIRA] Created: (HBX-962) @Temporal should always be added for Date/Calendar type

Dan Allen (JIRA) noreply at atlassian.com
Sun Jul 15 00:46:52 EDT 2007


@Temporal should always be added for Date/Calendar type
-------------------------------------------------------

                 Key: HBX-962
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-962
             Project: Hibernate Tools
          Issue Type: Bug
          Components: reverse-engineer
    Affects Versions: 3.2beta10
            Reporter: Dan Allen
         Attachments: HBX-962-v1.txt

Currently, the code in BasicPOJOClass.java says, and I quote "..the default so don't generate" in referring to a timestamp column type. However, the JPA specification clearly states "The Temporal annotation must be specified for persistent fields or properties of type java.util.Date and java.util.Calendar." Clearly it cannot be excluded.

I have supplied a patch that restores the @Temporal annotation, even when the column type is timestamp.

-- 
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