You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@batchee.apache.org by "Reinhard Sandtner (JIRA)" <ji...@apache.org> on 2016/02/18 11:19:18 UTC
[jira] [Resolved] (BATCHEE-96) StepExecutionEntity and
JobExecutionEntity violate the JPA2.0 Spec
[ https://issues.apache.org/jira/browse/BATCHEE-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reinhard Sandtner resolved BATCHEE-96.
--------------------------------------
Resolution: Fixed
Fix Version/s: 0.4-incubating
fixed on master!
Thx for reporting
> StepExecutionEntity and JobExecutionEntity violate the JPA2.0 Spec
> ------------------------------------------------------------------
>
> Key: BATCHEE-96
> URL: https://issues.apache.org/jira/browse/BATCHEE-96
> Project: BatchEE
> Issue Type: Bug
> Reporter: Alexander Falb
> Assignee: Reinhard Sandtner
> Fix For: 0.4-incubating
>
>
> {{StepExecutionEntity}} and {{JobExecutionEntity}} both have {{java.sql.Timestamp}} fields annotated with {{@Temporal(TIMESTAMP)}}, which is according to the JPA Spec not allowed (see below).
> I think the idea behind the Temporal annotation is to tell the persistence provider if the Date/Calender should be stored as Date or as Time or as Timestamp, there is no need to tell the provider that a timestamp should be stored as timestamp.
> ----
> Chapter 11.1.47 Temporal Annotation
> {quote}
> "The Temporal annotation must be specified for persistent fields or properties of type java.util.Date and java.util.Calendar. It may only be specified for fields or properties of these types."
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)