teneo - @OrderBy not processed? [message #600431] |
Mon, 01 January 2007 18:18 |
Andre Pareis 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("id")"/>
</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
|
|
|
Powered by
FUDForum. Page generated in 0.02727 seconds