batchee-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reinhard Sandtner (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (BATCHEE-96) StepExecutionEntity and JobExecutionEntity violate the JPA2.0 Spec
Date Thu, 18 Feb 2016 10:19:18 GMT

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

Mime
View raw message