Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » teneo - @OrderBy not processed?
teneo - @OrderBy not processed? [message #600431] Mon, 01 January 2007 18:18
Andre Pareis is currently offline Andre PareisFriend
Messages: 113
Registered: July 2009
Senior Member
Hi Martin,

I have annotated a One-to-Many association with @OrderBy on the many side like this:

<eStructuralFeatures xsi:type="ecore:EReference" name="instruments" upperBound="-1"
eType="#//pareis/trading/Instrument" containment="true"
eOpposite="#//pareis/trading/Instrument/Client">
<eAnnotations source="teneo.jpa">
<details key="value" value="@OneToMany(indexed=false)
@OrderBy(&quot;id&quot;)"/>
</eAnnotations>
</eStructuralFeatures>



It is correctly parsed as:

2007-01-01 19:12:45,364 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter - Annotation
content:
@OneToMany(indexed=false) @OrderBy("id")
2007-01-01 19:12:45,364 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.AnnotationTokenizer - Tok: 1: 'OneToMany'
Tok: 7: '('
Tok: 2: 'indexed'
Tok: 6: '='
Tok: 2: 'false'
Tok: 8: ')'
Tok: 1: 'OrderBy'
Tok: 7: '('
Tok: 5: '"id"'
Tok: 8: ')'
Tok: 0: ')'

2007-01-01 19:12:45,364 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter - Number of
parsed typename annotations 2
2007-01-01 19:12:45,364 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.ComplexNode - Converting OneToMany to
EObject
2007-01-01 19:12:45,364 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.ComplexNode - Primitive child:
indexed: false
2007-01-01 19:12:45,364 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter - Found
EReference oneToMany for OneToMany
2007-01-01 19:12:45,364 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.ComplexNode - Converting OrderBy to
EObject
2007-01-01 19:12:45,364 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.ComplexNode - Primitive child: value: id



But no ordering information is produced in the mapping descriptor:


<bag name="instruments" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`Instrument_Client_id`" not-null="false" unique="false"/>
</key>
<one-to-many entity-name="Instrument"/>
</bag>


Can you help?

Thanks
Andre
Previous Topic:Navigating to an EObject's eContainer
Next Topic:integrating EMFT JET into GMF
Goto Forum:
  


Current Time: Fri Feb 26 11:02:33 GMT 2021

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

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

Back to the top