teneo and ID [message #71715] |
Thu, 15 February 2007 10:20 |
Eclipse User |
|
|
|
Originally posted by: pascalpugatsch.hotmail.com
Hi,
relating to the annotations of my model I'd like to ask if there's a way
to specify a "@GeneratedValue" of GUID as id type?
Thanks,
Pascal
|
|
|
|
Re: teneo and ID [message #71770 is a reply to message #71734] |
Thu, 15 February 2007 15:43 |
Eclipse User |
|
|
|
Originally posted by: pascalpugatsch.hotmail.com
Hi Martin,
still not working.
when I have the annotations for my model:
/**
@model unique="true" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.String" required="false"
* annotation="teneo.jpa
appinfo='\n\t\t\t\t@Id\n\t\t\t\t@GenericGenerator(name=\"system-guid\",
strategy = \"guid\")\n\t\t\t'"
* annotation="teneo.jpa
appinfo='\n\t\t\t\t@Id\n\t\t\t\t@GeneratedValue(generator=\"system-guid\")\n\t\t\t'"
* extendedMetaData="kind='element' name='id'"
*/
I get:
2007-02-15 16:37:30,503 ERROR [-main] parser.AnnotationParserException
- The eclass: HbAnnotatedEAttribute does not have an efeature for
GenericGenerator
org.eclipse.emf.teneo.annotations.parser.AnnotationParserExc eption: The
eclass: HbAnnotatedEAttribute does not have an efeature for
GenericGenerator
cheers,
Pascal
|
|
|
|
Re: teneo and ID [message #71808 is a reply to message #71789] |
Thu, 15 February 2007 17:02 |
Eclipse User |
|
|
|
Originally posted by: pascalpugatsch.hotmail.com
Thanks Martin!
I used an older version and updated now to Teneo 0.8.0.
When I set the GenericGenerator on EPackage level it works perfect!
cheers, Pascal
|
|
|
|
Re: teneo and ID [message #602617 is a reply to message #71734] |
Thu, 15 February 2007 15:43 |
Eclipse User |
|
|
|
Originally posted by: pascalpugatsch.hotmail.com
Hi Martin,
still not working.
when I have the annotations for my model:
/**
@model unique="true" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.String" required="false"
* annotation="teneo.jpa
appinfo='\n\t\t\t\t@Id\n\t\t\t\t@GenericGenerator(name=\"system-guid\",
strategy = \"guid\")\n\t\t\t'"
* annotation="teneo.jpa
appinfo='\n\t\t\t\t@Id\n\t\t\t\t@GeneratedValue(generator=\"system-guid\")\n\t\t\t'"
* extendedMetaData="kind='element' name='id'"
*/
I get:
2007-02-15 16:37:30,503 ERROR [-main] parser.AnnotationParserException
- The eclass: HbAnnotatedEAttribute does not have an efeature for
GenericGenerator
org.eclipse.emf.teneo.annotations.parser.AnnotationParserExc eption: The
eclass: HbAnnotatedEAttribute does not have an efeature for
GenericGenerator
cheers,
Pascal
|
|
|
|
Re: teneo and ID [message #602624 is a reply to message #71789] |
Thu, 15 February 2007 17:02 |
Eclipse User |
|
|
|
Originally posted by: pascalpugatsch.hotmail.com
Thanks Martin!
I used an older version and updated now to Teneo 0.8.0.
When I set the GenericGenerator on EPackage level it works perfect!
cheers, Pascal
|
|
|
Powered by
FUDForum. Page generated in 0.03896 seconds