Problem with GenericGenerator annotation [message #616022] |
Fri, 28 March 2008 09:14 |
Manfred Hahn Messages: 64 Registered: July 2009 |
Member |
|
|
Hi Martin,
first I want to thank you for the hint with the @Basic annotation.
But now I need help with another annotation.
I like to have my ids generated with the hibernate uuid generator.
So I made an annotation to the property I also marked as id:
<eStructuralFeatures xsi:type="ecore:EAttribute" name="logicKey"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
iD="true">
<eAnnotations source="teneo.jpa">
<details key="appinfo"
value="@GenericGenerator(name="uuidgen"
strategy="uuid") "/>
</eAnnotations>
</eStructuralFeatures>
During the mapping generation the following error occurs:
org.eclipse.emf.teneo.annotations.parser.AnnotationParserExc eption: The
eclass: HbAnnotatedEAttribute does not have an efeature for
GenericGenerator
at
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter.processAnnotatedModelElement(EAnnotationParserImporte r.java:130)
The error message says that I have put the annotation at the wrong place,
but where do I have to put it? I've tried the class itself, but an
equivalent error occured.
Can you help me once more?
greetings
Manfred
|
|
|
Powered by
FUDForum. Page generated in 0.03517 seconds