[hibernate-issues] [Hibernate-JIRA] Commented: (EJB-311) @Temporal annotations is not mandatory

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Wed Aug 22 03:08:57 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/EJB-311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_27912 ] 

Max Rydahl Andersen commented on EJB-311:
-----------------------------------------

just to comment: hbmlint doesn't check the java code it just check the hibernate mapping model and in here it will look correct. so no warning.

> @Temporal annotations is not mandatory
> --------------------------------------
>
>                 Key: EJB-311
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-311
>             Project: Hibernate Entity Manager
>          Issue Type: Bug
>          Components: EntityManager
>    Affects Versions: 3.3.1.GA
>         Environment: hibernate-entitymanager-3.3.1.GA
> hibernate-3.2
> hibernate-annotations-3.3.0.GA
>            Reporter: Rubem Azenha
>            Priority: Minor
>
> According to the JPA spec (section 9.1.20): "The Temporal annotation *must* be specified for persistent fields or properties of type
> java.util.Date and java.util.Calendar."
> But the Hibernate Entity manager allows attributes without the @Temporal annotation. According to the specs, it should be mandatory the use of the @Temporary annotation in java.util.Date and java.util.Calendar fields.
> The Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007) JPA implementation throws a ValidationException in that cases.

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