OpenJPA
  1. OpenJPA
  2. OPENJPA-1870

Blob types override column definition from @Column annotation with MySQL

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.1.0
    • Component/s: jdbc
    • Labels:
      None

      Description

      Per email to users@openjpa, an entity with this annotation :

      @Column(columnDefinition=BINARY(250))
      private byte[] blobs;

      creates a column of type BLOB when using MySQL.. This behavior was introduced in OPENJPA-740, which optimizes the blob storage based on the size of the column, but does not take into account any existing annotations.

        Issue Links

          Activity

          Michael Dick created issue -
          Michael Dick made changes -
          Field Original Value New Value
          Link This issue is related to OPENJPA-740 [ OPENJPA-740 ]
          Michael Dick made changes -
          Reporter Michael Dick [ mikedd ] Joel Halbert [ joelhalbert ]
          Michael Dick made changes -
          Attachment OPENJPA-1870.diff.txt [ 12458767 ]
          Hide
          Michael Dick added a comment -

          Attaching a patch. It's a bit kludgy, will commit tomorrow if no one objects.

          Show
          Michael Dick added a comment - Attaching a patch. It's a bit kludgy, will commit tomorrow if no one objects.
          Michael Dick made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Joel Halbert added a comment -

          Thanks Mike.

          Show
          Joel Halbert added a comment - Thanks Mike.
          Joel Halbert made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          1d 23h 18m 1 Michael Dick 05/Nov/10 15:20
          Resolved Resolved Closed Closed
          3d 21h 46m 1 Joel Halbert 09/Nov/10 13:06

            People

            • Assignee:
              Michael Dick
              Reporter:
              Joel Halbert
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development