Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo+hibernate]
[Teneo+hibernate] [message #605180] Wed, 02 May 2007 07:36
Roman Bliznets is currently offline Roman BliznetsFriend
Messages: 75
Registered: July 2009
I'm use emf 2.3.0.v200703291501, teneo 0.8.0.v200704230019, hibernate 3.2,
database MySQL.
I convert XSD into Ecore model. After
Teneo maps Ecore into database wrong.

Wrong column types.

First Problem:
in XSD:
<xs:simpleType name="Count2Type">
<xs:documentation>Number. form 1. to 2 digit. </xs:documentation>
<xs:restriction base="CategoryCust:IntegerCategoriesCust">
<xs:totalDigits value="2"/>
<xs:minInclusive value="1"/>
in DataBase type of column: DECIMAL(2,2) (should be DECIMAL(2,0))
I take xml mapping (hbds.getMappingXML();) from datastore
<property name="subLineNumber" lazy="false" insert="true" update="true"
not-null="false" unique="false" type="java.math.BigInteger">
<column not-null="false" unique="false" name="`sublinenumber`"

Second Problem:
in XSD:
<xs:simpleType name="Code2Type">
<xs:documentation>Code. 2 symbols</xs:documentation>
<xs:restriction base="CategoryCust:CodeCategoriesCust">
<xs:length value="2"/>
in DataBase type of column: varchar(1) (should be varchar(2)) but not for
every column;
in xml mapping:
<property name="goodsStatus" lazy="false" insert="true" update="true"
not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`goodsstatus`"

Where is problem in Teneo or Hibernate?
P.S All types in Ecore equal to all types in XSD.
Previous Topic:[Teneo] ClassCastException retrieving model
Next Topic:[Teneo] GMF Editors
Goto Forum:

Current Time: Thu Jan 21 06:21:26 GMT 2021

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

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

Back to the top