Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 509B39AB0 for ; Mon, 18 Jun 2012 09:43:26 +0000 (UTC) Received: (qmail 36996 invoked by uid 500); 18 Jun 2012 09:43:20 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 30106 invoked by uid 500); 18 Jun 2012 09:42:51 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 15090 invoked by uid 99); 18 Jun 2012 09:32:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2012 09:32:01 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of wangyumi@gmail.com designates 209.85.213.174 as permitted sender) Received: from [209.85.213.174] (HELO mail-yx0-f174.google.com) (209.85.213.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2012 09:31:53 +0000 Received: by yenl2 with SMTP id l2so3325070yen.33 for ; Mon, 18 Jun 2012 02:31:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=UZQcf69kyvwE4z2uaoOzuSK+sRfGhWcm5dIU6ddUgN0=; b=xCwuSSmcidwvI7UEbzpKQM4oEk0yJKJXVLVw8fz4foWysku7LrGAMFJS1i4KSxQaAv psakVPdPTbyZHcdFvYgpxG8W+H3lE5dfcO0xCYdh7zX0PmtcU5T9m3osy21rFyFIZwwa EzVUE8HJoooKCm9lSy9TkPWFqLAmlGCeoJVhdBkiRnVBh+86qx/I59HQnUVcpdSPI4nI 9bUfqAatTm2qZJpIeDs1hAOrinGoKSbP+Oto9Pt4DBM49+1JAnqCVwtvENGaPEgUkpVJ zu3/9UZZbtzr5xIiNUOFNB6QGnnVdi4kQ7pkJwAEAkuUw7RYgxA1sUAjs0LQI0nzDYAZ RLkw== MIME-Version: 1.0 Received: by 10.50.188.131 with SMTP id ga3mr7856306igc.54.1340011892692; Mon, 18 Jun 2012 02:31:32 -0700 (PDT) Received: by 10.64.136.79 with HTTP; Mon, 18 Jun 2012 02:31:32 -0700 (PDT) Date: Mon, 18 Jun 2012 17:31:32 +0800 Message-ID: Subject: Timestamp precision question. From: yu wang To: users@openjpa.apache.org Content-Type: text/plain; charset=ISO-8859-1 Hello, I am using OpenJPA 1.2.2 connecting oracle DB. For Timestamp field, the precision is always millisecond level after the filed is persisted into DB, regardless of I print the timestampe filed in java, its precision is microsecond level. Any specific configuration I am not aware of? Below is a sample: @Basic() @Column(name="LOGTIME") public java.sql.Timestamp getLogtime() { return this.logtime; } @Override public void setLogtime(java.sql.Timestamp logtime) { this.logtime = logtime; } Regards, Yu Wang