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 <vi...@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.

Reply via email to