Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Teneo] How to order containment reference?
[Teneo] How to order containment reference? [message #1083040] Fri, 09 August 2013 11:40 Go to next message
John M. is currently offline John M.Friend
Messages: 198
Registered: July 2010
Senior Member
Hello,

I am using Teneo with EMF and have an EClass, which has a containment EReference on another EClass.
Works fine so far, but the values in the containment aren't sorted. I activate the orderer property and checked the database. There is a column ending with idx.

If I select the rows ordered by that idx all is fine, but how can I achieve it with Teneo?

Thanks for any advice.
Re: [Teneo] How to order containment reference? [message #1083057 is a reply to message #1083040] Fri, 09 August 2013 12:03 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi John,
Normally ereferences are sorted by this idx column. So I am not sure if the idx column you refer to is for that ereference.
You can check the generated hbm (see the datastore api) to check which idx column is being used by the containment
ereference.

gr. Martin

On 08/09/2013 01:40 PM, John M. wrote:
> Hello,
>
> I am using Teneo with EMF and have an EClass, which has a containment EReference on another EClass.
> Works fine so far, but the values in the containment aren't sorted. I activate the orderer property and checked the
> database. There is a column ending with idx.
>
> If I select the rows ordered by that idx all is fine, but how can I achieve it with Teneo?
>
> Thanks for any advice.


--

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
Re: [Teneo] How to order containment reference? [message #1083080 is a reply to message #1083057] Fri, 09 August 2013 12:46 Go to previous message
John M. is currently offline John M.Friend
Messages: 198
Registered: July 2010
Senior Member
Hello Martin,

yes you are right. Works like expected, there is some reference problem with the jgraphx. Everytime I take for example a value directly from an EObject (so it keeps its reference) all is mixxed up.
Previous Topic:[Maven][Teneo] Problems with resolving org.hibernate.criterion
Next Topic:"unique" handling problem
Goto Forum:
  


Current Time: Fri Mar 29 09:38:06 GMT 2024

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

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

Back to the top