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] Commented: (OPENJPA-1870) Blob types override column definition from @Column annotation with MySQL
Date Wed, 03 Nov 2010 22:37:28 GMT

    [ https://issues.apache.org/jira/browse/OPENJPA-1870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928031#action_12928031
] 

Michael Dick commented on OPENJPA-1870:
---------------------------------------

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

> Blob types override column definition from @Column annotation with MySQL
> ------------------------------------------------------------------------
>
>                 Key: OPENJPA-1870
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1870
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 2.0.2
>            Reporter: Joel Halbert
>            Assignee: Michael Dick
>             Fix For: 2.1.0
>
>         Attachments: OPENJPA-1870.diff.txt
>
>
> 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. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message