[hibernate-issues] [Hibernate-JIRA] Commented: (EJB-311) @Temporal annotations is not mandatory
Rubem Azenha (JIRA)
noreply at atlassian.com
Mon Aug 20 13:21:13 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/EJB-311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_27898 ]
Rubem Azenha commented on EJB-311:
----------------------------------
BTW, check this issue:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-962
> @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