[teneo] How to specify table generators? [message #67767] |
Wed, 10 January 2007 23:26 |
Eclipse User |
|
|
|
Originally posted by: user.domain.com
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=" 	@TableGenerator(name="BRM_SEQ_STORE&qu ot;)

@Id
	@Column(name="IDENTIF IER_ID" ,
length=75)
	@GeneratedValue(strateg y=TABLE,
generator="BRM_SEQ_STORE")
&#x A;	@SequenceGenerator(name="SEQ_STORE&q uot;)
 "/>
</eAnnotations>
</eStructuralFeatures>
regards
/anders
|
|
|
|
Re: [teneo] How to specify table generators? [message #67956 is a reply to message #67913] |
Thu, 11 January 2007 14:31 |
Eclipse User |
|
|
|
Originally posted by: user.domain.com
Hi Martin,
Thanks , its seem to work when I add TableGeneration annotation to the
package.
Ive added buzilla entry: 170217 for the feature request.
thanks
/anders
Martin Taal wrote:
> Hi,
> Can you try to specify the tablegenerator annotation on epackage level?
>
> If it works can you then enter a bugzilla that tablegenerator should
> also be supported on efeature level.
>
> gr. Martin
>
> user@domain.com wrote:
>> 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=" 	@TableGenerator(name="BRM_SEQ_STORE&qu ot;)

>> @Id
	@Column(name="IDENTIF IER_ID" ,
>> length=75)
	@GeneratedValue(strateg y=TABLE,
>> generator="BRM_SEQ_STORE")
&#x A;	@SequenceGenerator(name="SEQ_STORE&q uot;)
 "/>
>>
>> </eAnnotations>
>> </eStructuralFeatures>
>>
>>
>> regards
>> /anders
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02242 seconds