Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1710

OpenJPA generates ABSTIME for a TIMESTAMP field for Postgres 8.4

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • tooling
    • None
    • Mac OS X, JDK 6, OpenJPA 2.0

    Description

      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

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mikedd Michael Dick
            bigmountainben Benjamin Renaud
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment