|
Re: [Teneo] Seems that EAttributes of type EByteArray are not mapped correctly against hibernate [message #71947 is a reply to message #71890] |
Thu, 15 February 2007 23:33  |
Eclipse User |
|
|
|
Yes this changed after we added support for the @Lob annotation (which you can also use). The
default for a many eattribute is that it's elements are stored in a separate table to enable
querying. So byte array is currently treated as any other primitive type array.
gr. Martin
Michael Kanaley wrote:
> Teneo is mapping to a Hibernate <array> mapping with byte elements - it is
> thinking that the array is of some complex type.
>
> Instead, I think this should just be using Hibernate's <binary> mapping.
>
> The trivial workaround for this is to use the Hibernate Type annotation
> like:
> @Type(type="binary")
> -mike
>
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: [Teneo] Seems that EAttributes of type EByteArray are not mapped correctly against hibernate [message #602664 is a reply to message #71890] |
Thu, 15 February 2007 23:33  |
Eclipse User |
|
|
|
Yes this changed after we added support for the @Lob annotation (which you can also use). The
default for a many eattribute is that it's elements are stored in a separate table to enable
querying. So byte array is currently treated as any other primitive type array.
gr. Martin
Michael Kanaley wrote:
> Teneo is mapping to a Hibernate <array> mapping with byte elements - it is
> thinking that the array is of some complex type.
>
> Instead, I think this should just be using Hibernate's <binary> mapping.
>
> The trivial workaround for this is to use the Hibernate Type annotation
> like:
> @Type(type="binary")
> -mike
>
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.04831 seconds