Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Seems that EAttributes of type EByteArray are not mapped correctly against hibernate
[Teneo] Seems that EAttributes of type EByteArray are not mapped correctly against hibernate [message #71890] Thu, 15 February 2007 19:20 Go to next message
Michael Kanaley is currently offline Michael KanaleyFriend
Messages: 89
Registered: July 2009
Member
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
Re: [Teneo] Seems that EAttributes of type EByteArray are not mapped correctly against hibernate [message #71947 is a reply to message #71890] Fri, 16 February 2007 04:33 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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] Fri, 16 February 2007 04:33 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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
Previous Topic:Why is the unique attribute of EAttribute ignored?
Next Topic:[TENEO] stackoverflow when saving a copied resource
Goto Forum:
  


Current Time: Thu Oct 29 03:28:41 GMT 2020

Powered by FUDForum. Page generated in 0.02773 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top