You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@batchee.apache.org by "Alexander Falb (JIRA)" <ji...@apache.org> on 2016/02/17 12:55:18 UTC
[jira] [Created] (BATCHEE-96) StepExecutionEntity and
JobExecutionEntity violate the JPA2.0 Spec
Alexander Falb created BATCHEE-96:
-------------------------------------
Summary: 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
{{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)