Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [TENEO] Matrix to table
[TENEO] Matrix to table [message #549627] Tue, 27 July 2010 08:03 Go to next message
sCambon is currently offline sCambon
Messages: 4
Registered: July 2010
Junior Member
Hello everybody.

I have a container object with a float[][] attribute.
For multiple reasons, I would like to read the content of this matrix directly from the database.

My question is: how to tell Teneo to persist my matrix as rows in a table?

Tuples could have a form like this: (containerID, iIndex, jIndex, content), so that they would be convenient for me to retrieve.

Thank you for your interest and this great Teneo!
Re: [TENEO] Matrix to table [message #549767 is a reply to message #549627] Tue, 27 July 2010 16:48 Go to previous messageGo to next message
Martin Taal is currently offline Martin Taal
Messages: 5329
Registered: July 2009
Senior Member
Hi,
I did my best but I could not really find how to map a multi-dimensional using Hibernate (even without using Teneo). If
you can find this out (maybe you know or can ask on the Hibernate forum?) then I can tell how to do this with Teneo also
(or change Teneo to support it)...

gr. Martin

On 07/27/2010 02:03 PM, popopo@yopmail.com wrote:
> Hello everybody.
>
> I have a container object with a float[][] attribute.
> For multiple reasons, I would like to read the content of this matrix
> directly from the database.
>
> My question is: how to tell Teneo to persist my matrix as rows in a table?
>
> Tuples could have a form like this: (containerID, iIndex, jIndex,
> content), so that they would be convenient for me to retrieve.
>
> Thank you for your interest and this great Teneo!


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
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] Matrix to table [message #549825 is a reply to message #549627] Wed, 28 July 2010 03:11 Go to previous message
sCambon is currently offline sCambon
Messages: 4
Registered: July 2010
Junior Member
Ok, I'll post it on Hibernate forum and will keep this thread up to date with the results.
The thread is https://forum.hibernate.org/viewtopic.php?f=1&t=1006061& amp;p=2433621#p2433621

[Updated on: Wed, 28 July 2010 03:23]

Report message to a moderator

Previous Topic:[CDO] SQL Select for Update / Delete
Next Topic:Deserialize ComplexType when there are elements present
Goto Forum:
  


Current Time: Fri Aug 22 21:55:21 EDT 2014

Powered by FUDForum. Page generated in 0.01955 seconds