[hibernate-issues] [Hibernate-JIRA] Resolved: (EJB-311) @Temporal annotations is not mandatory
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Tue Aug 21 21:39:13 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/EJB-311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Bernard resolved EJB-311.
----------------------------------
Resolution: Rejected
But the spec does not say an exception must be raised. I like my default better.
This is something the hbmlint can track though
> @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