openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted <r6squee...@gmail.com>
Subject Re: byte[] mapped to BLOB and not VARBINARY
Date Wed, 17 Jul 2013 02:36:26 GMT
this is what I do

@Column(nullable = false, columnDefinition = "tinyint(1)")

change the tinyint to what ever you want

On 7/17/13, Virag Kothari <virag@yahoo-inc.com> wrote:
> Hi All,
>
> Is there a annotation which can hint the mapping from byte[] to VARBINARY?
> I have the following defined but the column gets mapped to a BLOB and not
> VARBINARY. This is happening for Oracle.
>
>     @Basic
>
>     @Column(name = "foo")
>
>     private byte[] foo = null;
>
>
> Thanks,
>
> Virag
>


-- 
Ted.

Mime
View raw message