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

Blob types override column definition from @Column annotation with MySQL

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2
    • 2.1.0
    • jdbc
    • 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.

      Attachments

        Issue Links

          Activity

            mikedd Michael Dick added a comment -

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

            mikedd Michael Dick added a comment - Attaching a patch. It's a bit kludgy, will commit tomorrow if no one objects.
            joelhalbert Joel Halbert added a comment -

            Thanks Mike.

            joelhalbert Joel Halbert added a comment - Thanks Mike.

            People

              mikedd Michael Dick
              joelhalbert Joel Halbert
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: