Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [teneo] How to specify table generators?
[teneo] How to specify table generators? [message #601076] Wed, 10 January 2007 23:26
user is currently offline userFriend
Messages: 296
Registered: July 2009
Senior Member
Hi,

Im trying ot convert an old hibernate appl to Teneo and now I go to the
point were I need to convert a Table generator spec to annotation.
However I get an exception saying that no table generator is defined.

------------
843 [main] DEBUG org.eclipse.emf.teneo.hibernate.mapper.IdMapper - No
GenericGenerator defined under name: BRM_SEQ_STORE
31218 [main] DEBUG
org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl - No
table generator found with the name: BRM_SEQ_STORE, name is used in
annotation of element BaseTypedIdentifier/id
---------------------------------

however earlier in the appl I get the following suggesting that
something is being parsed???

-------------------------------
703 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Number of parsed typename annotations 5
703 [main] DEBUG org.eclipse.emf.teneo.annotations.parser.ComplexNode
- Converting TableGenerator to EObject
703 [main] DEBUG org.eclipse.emf.teneo.annotations.parser.ComplexNode
- Primitive child: name: BRM_SEQ_STORE
703 [main] DEBUG org.eclipse.emf.teneo.annotations.parser.ComplexNode
- Primitive child: table: BRM_IF_GENERATOR
703 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Found EReference tableGenerator for TableGenerator
703 [main] DEBUG org.eclipse.emf.teneo.annotations.parser.ComplexNode
- Converting Id to EObject
703 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Found EReference id for Id
703 [main] DEBUG org.eclipse.emf.teneo.annotations.parser.ComplexNode
- Converting Column to EObject
718 [main] DEBUG org.eclipse.emf.teneo.annotations.parser.ComplexNode
- Primitive child: name: IDENTIFIER_ID
718 [main] DEBUG org.eclipse.emf.teneo.annotations.parser.ComplexNode
- Primitive child: length: 75
718 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Found EReference column for Column
718 [main] DEBUG org.eclipse.emf.teneo.annotations.parser.ComplexNode
- Converting GeneratedValue to EObject
718 [main] DEBUG org.eclipse.emf.teneo.annotations.parser.ComplexNode
- Primitive child: strategy: TABLE
718 [main] DEBUG org.eclipse.emf.teneo.annotations.parser.ComplexNode
- Primitive child: generator: BRM_SEQ_STORE
718 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Found EReference generatedValue for GeneratedValue
718 [main] DEBUG org.eclipse.emf.teneo.annotations.parser.ComplexNode
- Converting SequenceGenerator to EObject
718 [main] DEBUG org.eclipse.emf.teneo.annotations.parser.ComplexNode
- Primitive child: name: SEQ_STORE
718 [main] DEBUG
org.eclipse.emf.teneo.annotations.parser.EAnnotationParserIm porter -
Found EReference sequenceGenerator for SequenceGenerator

-------------------------------
here is my ID property definition. any ideas why below table gen doest work?

<eStructuralFeatures xsi:type="ecore:EAttribute" name="id"
ordered="false" lowerBound="1" eType="ecore:EDataType
http://www.eclipse.org/emf/2002/Ecore#//EString">
<eAnnotations source="teneo.jpa">
<details key="value"
value=" &#x9;@TableGenerator(name=&quot;BRM_SEQ_STORE&qu ot;)&#xD;&#xA;
@Id&#xD;&#xA;&#x9;@Column(name=&quot;IDENTIF IER_ID&quot; ,
length=75)&#xD;&#xA;&#x9;@GeneratedValue(strateg y=TABLE,
generator=&quot;BRM_SEQ_STORE&quot;)&#xD;&#x A;&#x9;@SequenceGenerator(name=&quot;SEQ_STORE&q uot;)&#xD;&#xA; "/>
</eAnnotations>
</eStructuralFeatures>


regards
/anders
Previous Topic:Lock in case Inheritance
Next Topic:[teneo] Is Inheritance variant TABLE_PER_CLASS still unsupported
Goto Forum:
  


Current Time: Fri Feb 26 10:59:03 GMT 2021

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

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

Back to the top