batchee-dev mailing list archives

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


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:
>             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
> 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

View raw message