Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF][Teneo] Order of children in references
[EMF][Teneo] Order of children in references [message #1176799] Fri, 08 November 2013 10:10 Go to next message
Marina Knieling is currently offline Marina Knieling
Messages: 59
Registered: February 2013
Member
Hi together,

I need to know whether EMF together with Teneo/Hibernate stores the
order of the children in one-to-many or many-to-many references and if
it is somehow possible to change this order - like moving one item to
the front or the end of the list.

I am dependent on the order of the children as I need to create files
out of some elements which need to be in exactly the order I've put them
in the model. I don't have any possibility to sort them.

Thank you for any hints

Marina
Re: [EMF][Teneo] Order of children in references [message #1176987 is a reply to message #1176799] Fri, 08 November 2013 12:44 Go to previous message
Martin Taal is currently offline Martin Taal
Messages: 5325
Registered: July 2009
Senior Member
Hi Marina,
Yes this is possible, Teneo will persist list default as a list with an index. There are options in Teneo to use bags
instead of list mappings but as a default the list persistence is chosen. See the teneo wiki for more details.

gr. Martin

On 11/08/2013 04:10 PM, Marina Knieling wrote:
> Hi together,
>
> I need to know whether EMF together with Teneo/Hibernate stores the order of the children in one-to-many or many-to-many
> references and if it is somehow possible to change this order - like moving one item to the front or the end of the list.
>
> I am dependent on the order of the children as I need to create files out of some elements which need to be in exactly
> the order I've put them in the model. I don't have any possibility to sort them.
>
> Thank you for any hints
>
> Marina


--

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@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Previous Topic:[EMFStore] command stack notification storms
Next Topic:[EMFStore] command stack flushing
Goto Forum:
  


Current Time: Tue Jul 22 05:37:56 EDT 2014

Powered by FUDForum. Page generated in 0.06359 seconds