This is a bug, the column definition is being overridden by a type set in
the MySQL dictionary. I went ahead and opened a JIRA on your behalf :
OPENJPA-1870 <https://issues.apache.org/jira/browse/OPENJPA-1870>, and
posted to stack overflow..

FWIW it should be fairly straight forward to fix.

-mike

P.S., I'm happy to make you the originator of the JIRA if you have an
account.

On Wed, Nov 3, 2010 at 6:48 AM, Joel Halbert <j...@su3analytics.com> wrote:

> I'm trying to define a byte[] property as a binary mysql type, like so:
>
> |@Column(name="HASH_PATHQRY",  columnDefinition="BINARY(8)")
> public  byte[]  getHashPathQry()  {
>    return  hashPathQry;
> }|
>
>
> but the column is always created as a blob.
>
> Any clues?
>
> Also posted to StackOverflow here:
> http://stackoverflow.com/questions/4086525/open-jpa-column-definition-binary
>
> Thanks
> Joel
>

Reply via email to