cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Huss <johnth...@gmail.com>
Subject Re: cayenne-crypto
Date Fri, 01 Aug 2014 14:34:58 GMT
It is mapped to byte[].

VARBINARY + byte[] = ERROR
VARCHAR + String = OK

For now I'm just using VARCHAR.


On Fri, Aug 1, 2014 at 8:16 AM, Andrus Adamchik <andrus@objectstyle.org>
wrote:

>
> On Jul 17, 2014, at 5:49 PM, John Huss <johnthuss@gmail.com> wrote:
>
> > Also, I'm getting a ClassCastException when using a VARBINARY column in
> > MySQL 5.6.x mapped to a String.  The value is String in the Map and when
> it
> > casts it to a byte[] in BytesToBytesConverter.toBytes() it blows up.  I'm
> > not sure why it is a String since the column is binary, but it is.
>
> So can you map it as byte[] on the Obj* side?
>
> Andrus
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message