openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Dick (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OPENJPA-1710) OpenJPA generates ABSTIME for a TIMESTAMP field for Postgres 8.4
Date Wed, 27 Apr 2011 17:34:03 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-1710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Dick resolved OPENJPA-1710.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.0

Fixed in OPENJPA-1726

> OpenJPA generates ABSTIME for a TIMESTAMP field for Postgres 8.4
> ----------------------------------------------------------------
>
>                 Key: OPENJPA-1710
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1710
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: tooling
>    Affects Versions: 2.0.0
>         Environment: Mac OS X, JDK 6, OpenJPA 2.0
>            Reporter: Benjamin Renaud
>            Assignee: Michael Dick
>             Fix For: 2.1.0
>
>
> The mapping tool (openjpa:sql maven target) generates a column of type ABSTIME on Postgres
8.4. This is wrong because
> 1. ABSTIME is deprecated and
> 2. ABSTIME has a resolution of 1s.
> It should be TIMESTAMP.
> The workaround is to specify
>             <property name="openjpa.jdbc.DBDictionary" value="TimestampTypeName=TIMESTAMP"
/>
> in your persistence.xml

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message