Return-Path: X-Original-To: apmail-batchee-dev-archive@minotaur.apache.org Delivered-To: apmail-batchee-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F3FF1183E5 for ; Thu, 18 Feb 2016 10:19:20 +0000 (UTC) Received: (qmail 18893 invoked by uid 500); 18 Feb 2016 10:19:20 -0000 Delivered-To: apmail-batchee-dev-archive@batchee.apache.org Received: (qmail 18863 invoked by uid 500); 18 Feb 2016 10:19:20 -0000 Mailing-List: contact dev-help@batchee.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@batchee.incubator.apache.org Delivered-To: mailing list dev@batchee.incubator.apache.org Received: (qmail 18851 invoked by uid 99); 18 Feb 2016 10:19:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Feb 2016 10:19:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 6FE94C05B1 for ; Thu, 18 Feb 2016 10:19:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.549 X-Spam-Level: X-Spam-Status: No, score=-3.549 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.329] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id xbUw5pF6zkEe for ; Thu, 18 Feb 2016 10:19:19 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id E4D5C5F1EB for ; Thu, 18 Feb 2016 10:19:18 +0000 (UTC) Received: (qmail 18816 invoked by uid 99); 18 Feb 2016 10:19:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Feb 2016 10:19:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1407B2C14F4 for ; Thu, 18 Feb 2016 10:19:18 +0000 (UTC) Date: Thu, 18 Feb 2016 10:19:18 +0000 (UTC) From: "Reinhard Sandtner (JIRA)" To: dev@batchee.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (BATCHEE-96) StepExecutionEntity and JobExecutionEntity violate the JPA2.0 Spec MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)