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

Dan Allen (JIRA) noreply at atlassian.com
Tue Oct 16 17:34:38 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_28443 ] 

Dan Allen commented on HBX-962:
-------------------------------

I have committed this to the 3.2 branch.

> @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
>
>   Original Estimate: 5 minutes
>  Remaining Estimate: 5 minutes
>
> 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