Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Persistence Options
[Teneo] Persistence Options [message #82536] Tue, 08 May 2007 12:51 Go to next message
Roman Bliznets is currently offline Roman BliznetsFriend
Messages: 75
Registered: July 2009
Member
Hello... I'm try to use PersistenceOptions.PERSISTENCE_XML and get an
exception:

java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
at org.apache.xerces.util.ParserConfigurationSettings.setProper ty(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.setProperty(Unk nown Source)
at org.apache.xerces.parsers.AbstractSAXParser.setProperty(Unkn own Source)
at org.apache.xerces.jaxp.SAXParserImpl.setProperty(Unknown Source)
at
org.eclipse.emf.teneo.annotations.xml.XmlPersistenceMapper.a pplyPersistenceMapping(XmlPersistenceMapper.java:90)
at
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:104)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:531)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:149)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:70)
at test.SessionFactoryBean.getSessionFactory(SessionFactoryBean .java:76)
at customs.ru.categories._3._0._0.tests._0Example.main(_0Exampl e.java:86)

this line:
saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",
this.getClass()
.getResourceAsStream("persistence-mapping.xsd"));
stream is null and ocurr exception

I check file "persistence-mapping.xsd", it exist and
XmlPersistenceMapper.class.getResourceAsStream("persistence-mapping.xsd ")
return not null stream.
In Debug Mode:
"this.getClass()"= Class<T>
(org.eclipse.emf.teneo.hibernate.hbannotation.util.MappingBu ilder$LocalXmlPersistenceMapper)
and because of it stream=null

What should I do?
Re: [Teneo] Persistence Options [message #82553 is a reply to message #82536] Tue, 08 May 2007 13:43 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi,
There is also a persistence-mapping.xsd in org.eclipse.emf.teneo.hibernate.hbannotation.util (at
least in the build I downloaded). Can you check if that one is present in the build you downloaded?

gr. Martin

wolf_roma wrote:
> Hello... I'm try to use PersistenceOptions.PERSISTENCE_XML and get an
> exception:
>
> java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:394)
> at org.apache.xerces.util.ParserConfigurationSettings.setProper ty(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.setProperty(Unk nown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.setProperty(Unkn own Source)
> at org.apache.xerces.jaxp.SAXParserImpl.setProperty(Unknown Source)
> at
> org.eclipse.emf.teneo.annotations.xml.XmlPersistenceMapper.a pplyPersistenceMapping(XmlPersistenceMapper.java:90)
> at
> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:104)
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:531)
> at
> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:149)
> at
> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:70)
> at test.SessionFactoryBean.getSessionFactory(SessionFactoryBean .java:76)
> at customs.ru.categories._3._0._0.tests._0Example.main(_0Exampl e.java:86)
>
> this line:
> saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",
> this.getClass()
> .getResourceAsStream("persistence-mapping.xsd"));
> stream is null and ocurr exception
>
> I check file "persistence-mapping.xsd", it exist and
> XmlPersistenceMapper.class.getResourceAsStream("persistence-mapping.xsd ")
> return not null stream.
> In Debug Mode:
> "this.getClass()"= Class<T>
> (org.eclipse.emf.teneo.hibernate.hbannotation.util.MappingBu ilder$LocalXmlPersistenceMapper)
> and because of it stream=null
>
> What should I do?
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Persistence Options [message #82566 is a reply to message #82553] Tue, 08 May 2007 14:32 Go to previous messageGo to next message
Roman Bliznets is currently offline Roman BliznetsFriend
Messages: 75
Registered: July 2009
Member
It's my mistake, I use source code and it does not contain
persistence-mapping.xsd.

Thanks.
You wrote:
> Hi,
> There is also a persistence-mapping.xsd in
> org.eclipse.emf.teneo.hibernate.hbannotation.util (at least in the build I
> downloaded). Can you check if that one is present in the build you
> downloaded?
>
> gr. Martin
Re: [Teneo] Persistence Options [message #82596 is a reply to message #82566] Tue, 08 May 2007 14:57 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Okay, so this issue is solved?

gr. Martin

wolf_roma wrote:
> It's my mistake, I use source code and it does not contain
> persistence-mapping.xsd.
>
> Thanks.
> You wrote:
>> Hi,
>> There is also a persistence-mapping.xsd in
>> org.eclipse.emf.teneo.hibernate.hbannotation.util (at least in the build I
>> downloaded). Can you check if that one is present in the build you
>> downloaded?
>>
>> gr. Martin
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Persistence Options [message #83169 is a reply to message #82596] Fri, 11 May 2007 07:13 Go to previous messageGo to next message
Roman Bliznets is currently offline Roman BliznetsFriend
Messages: 75
Registered: July 2009
Member
Yes, it solved
Re: [Teneo] Persistence Options [message #83559 is a reply to message #83169] Wed, 16 May 2007 06:55 Go to previous messageGo to next message
Roman Bliznets is currently offline Roman BliznetsFriend
Messages: 75
Registered: July 2009
Member
Hello :). Haven't seen many time...
I have another problem:
persistence.xml:
<?xml version="1.0" encoding="utf-8"?>
<persistence-mapping xmlns="http://www.eclipse.org/emft/teneo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<epackage
namespace-uri="urn:customs.ru:ESADCommonAggregateTypes:3.0.1 ">
<eclass name="GoodsItemBaseType">
<property name="goodsDescription">
<join-table name="goodsdescription2"/>
</property>
</eclass>
<eclass name="ProcessingGoodsType">
<property name="goodsDescription">
<join-table name="goodsdescription3"/>
</property>
</eclass>
<eclass name="GoodsGroupDescriptionType">
<property name="goodsDescription">
<join-table name="goodsdescription4"/>
</property>
</eclass>
</epackage>
<epackage namespace-uri="urn:customs.ru:CommonAggregateTypes:3.0.1">
<eclass name="GoodsBaseType">
<property name="goodsDescription">
<join-table name="goodsdescription5"/>
</property>
</eclass>
</epackage>
</persistence-mapping>

Teneo create table only for first eclass GoodsItemBaseType, but on another
eclasses it isn't.
Re: [Teneo] Persistence Options [message #83574 is a reply to message #83559] Wed, 16 May 2007 07:11 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
I don't remember how your model looks like exactly but is GoodsItemBaseType the base type for the
others and do you use single-table inheritance mapping?
How does the hbm look like for this property?

and what happens if you change the order in the persistence.xml?

gr. Martin

wolf_roma wrote:
> Hello :). Haven't seen many time...
> I have another problem:
> persistence.xml:
> <?xml version="1.0" encoding="utf-8"?>
> <persistence-mapping xmlns="http://www.eclipse.org/emft/teneo"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>
> <epackage
> namespace-uri="urn:customs.ru:ESADCommonAggregateTypes:3.0.1 ">
> <eclass name="GoodsItemBaseType">
> <property name="goodsDescription">
> <join-table name="goodsdescription2"/>
> </property>
> </eclass>
> <eclass name="ProcessingGoodsType">
> <property name="goodsDescription">
> <join-table name="goodsdescription3"/>
> </property>
> </eclass>
> <eclass name="GoodsGroupDescriptionType">
> <property name="goodsDescription">
> <join-table name="goodsdescription4"/>
> </property>
> </eclass>
> </epackage>
> <epackage namespace-uri="urn:customs.ru:CommonAggregateTypes:3.0.1">
> <eclass name="GoodsBaseType">
> <property name="goodsDescription">
> <join-table name="goodsdescription5"/>
> </property>
> </eclass>
> </epackage>
> </persistence-mapping>
>
> Teneo create table only for first eclass GoodsItemBaseType, but on another
> eclasses it isn't.
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Persistence Options [message #83589 is a reply to message #83574] Wed, 16 May 2007 07:49 Go to previous messageGo to next message
Roman Bliznets is currently offline Roman BliznetsFriend
Messages: 75
Registered: July 2009
Member
I'm use PersistenceOptions.INHERITANCE_MAPPING, "JOINED".

I checked all classes.
Each class independent from others.
I try change order and it doesn't have result.
Table create only for GoodsItemBaseType class.
Re: [Teneo] Persistence Options [message #83601 is a reply to message #83589] Wed, 16 May 2007 07:56 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Can you post the hbm just for these properties?

gr. Martin

wolf_roma wrote:
> I'm use PersistenceOptions.INHERITANCE_MAPPING, "JOINED".
>
> I checked all classes.
> Each class independent from others.
> I try change order and it doesn't have result.
> Table create only for GoodsItemBaseType class.
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Persistence Options [message #83615 is a reply to message #83601] Wed, 16 May 2007 08:02 Go to previous messageGo to next message
Roman Bliznets is currently offline Roman BliznetsFriend
Messages: 75
Registered: July 2009
Member
my.xml - hibernate mapping xml


  • Attachment: my.xml
    (Size: 225.64KB, Downloaded 342 times)
Re: [Teneo] Persistence Options [message #83657 is a reply to message #83615] Wed, 16 May 2007 08:26 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Okay, can you send me your ecore file(s) and the persistence.xml? Then I can try this out myself.

gr. Martin

wolf_roma wrote:
> my.xml - hibernate mapping xml
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
>
> <!-- Generated by Teneo on Wed May 16 11:27:33 MSD 2007 -->
> <hibernate-mapping>
> <typedef name="_1.TransportCategoryCodeTypeObject" class=" org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserT ype ">
> <param name="epackage">urn:customs.ru:CommonLeafTypes:3.0.1</param >
> <param name="edatatype">TransportCategoryCodeTypeObject</param>
> </typedef>
> <class name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutBorderTransportTypeImpl " entity-name="ESADoutBorderTransportType" abstract="false" lazy="false" table="`esadoutbordertransporttyp`">
> <meta attribute="eclassName">ESADoutBorderTransportType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <id type="long" name="e_id" column="e_id" access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
> <meta attribute="syntheticVersion">true</meta>
> </version>
> <property name="transportModeCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`transportmodecode`" length="2"/>
> </property>
> <property name="transportNationalityCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`transportnationalitycode"/>
> </property>
> <list name="transportMeans" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutbordertransport_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutbordertranspor_idx`"/>
> <one-to-many entity-name="TransportMeansType"/>
> </list>
> </class>
> <class name=" customs.ru.common.aggregate.types._3._0._1.impl.Organization BaseTypeImpl " entity-name="OrganizationBaseType" abstract="false" lazy="false" table="`organizationbasetype`">
> <meta attribute="eclassName">OrganizationBaseType</meta>
> <meta attribute="epackage">urn:customs.ru:CommonAggregateTypes:3.0.1 </meta>
> <id type="long" name="e_id" column="e_id" access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
> <meta attribute="syntheticVersion">true</meta>
> </version>
> <property name="organizationName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`organizationname`" length="150"/>
> </property>
> <property name="shortName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`shortname`" length="35"/>
> </property>
> <property name="oGRN" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`ogrn`"/>
> </property>
> <property name="iNN" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`inn`" length="12"/>
> </property>
> <property name="kPP" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`kpp`"/>
> </property>
> </class>
> <joined-subclass name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.ESADOrg anizationTypeImpl " entity-name="ESADOrganizationType" abstract="false" lazy="false" extends="OrganizationBaseType" table="`esadorganizationtype`">
> <meta attribute="eclassName">ESADOrganizationType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <key>
> <column name="`organizationbasetype_e_id`"/>
> </key>
> <many-to-one name="address" entity-name="AddressType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`addresstype_address_e_id`"/>
> </many-to-one>
> <many-to-one name="identityCard" entity-name="IdentityCardType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`identitycardtype_ident_id`"/>
> </many-to-one>
> </joined-subclass>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutCarrierTypeImpl " entity-name="ESADoutCarrierType" abstract="false" lazy="false" extends="ESADOrganizationType" table="`esadoutcarriertype`">
> <meta attribute="eclassName">ESADoutCarrierType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadorganizationtype_e_id`"/>
> </key>
> <list name="eSADDriverInformation" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutcarriertype_esa_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutcarriertype_es_idx`"/>
> <one-to-many entity-name="ESADDriverInformationType"/>
> </list>
> </joined-subclass>
> <class name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.ESADCon sigmentTypeImpl " entity-name="ESADConsigmentType" abstract="false" lazy="false" table="`esadconsigmenttype`">
> <meta attribute="eclassName">ESADConsigmentType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <id type="long" name="e_id" column="e_id" access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
> <meta attribute="syntheticVersion">true</meta>
> </version>
> <property name="containerIndicator" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
> <column not-null="false" unique="false" name="`containerindicator`"/>
> </property>
> <property name="dispatchCountryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`dispatchcountrycode`"/>
> </property>
> <property name="dispatchCountryName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`dispatchcountryname`" length="35"/>
> </property>
> <property name="destinationCountryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`destinationcountrycode`"/>
> </property>
> <property name="destinationCountryName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`destinationcountryname`" length="35"/>
> </property>
> <many-to-one name="deliveryCustomsOffice" entity-name="CustomsType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`customstype_deliverycu_id`"/>
> </many-to-one>
> <list name="borderCustomsOffice" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadconsigmenttype_bor_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadconsigmenttype_bo_idx`"/>
> <one-to-many entity-name="CustomsType"/>
> </list>
> </class>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutConsigmentTypeImpl " entity-name="ESADoutConsigmentType" abstract="false" lazy="false" extends="ESADConsigmentType" table="`esadoutconsigmenttype`">
> <meta attribute="eclassName">ESADoutConsigmentType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadconsigmenttype_e_id`"/>
> </key>
> <many-to-one name="eSADoutDepartureArrivalTransport" entity-name="ESAoutDepartureArrivalTransportType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esaoutdeparturearrival_id`"/>
> </many-to-one>
> <many-to-one name="eSADoutBorderTransport" entity-name="ESADoutBorderTransportType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutbordertransport_id`"/>
> </many-to-one>
> <many-to-one name="eSADoutLoadingPlace" entity-name="ESADoutLoadingPlaceType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutloadingplacetyp_id`"/>
> </many-to-one>
> <list name="eSADoutReloadingInfo" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutconsigmenttype__id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutconsigmenttype_idx`"/>
> <one-to-many entity-name="ESADReloadingInfoType"/>
> </list>
> </joined-subclass>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutConsigneeTypeImpl " entity-name="ESADoutConsigneeType" abstract="false" lazy="false" extends="ESADOrganizationType" table="`esadoutconsigneetype`">
> <meta attribute="eclassName">ESADoutConsigneeType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadorganizationtype_e_id`"/>
> </key>
> <property name="contractorIndicator" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`contractorindicator`" length="1"/>
> </property>
> </joined-subclass>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutConsignorTypeImpl " entity-name="ESADoutConsignorType" abstract="false" lazy="false" extends="ESADOrganizationType" table="`esadoutconsignortype`">
> <meta attribute="eclassName">ESADoutConsignorType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadorganizationtype_e_id`"/>
> </key>
> <property name="bowelsINN" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`bowelsinn`" length="12"/>
> </property>
> <property name="bowelsOKPO" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`bowelsokpo`" length="10"/>
> </property>
> </joined-subclass>
> <class name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutCustomsConditionsTypeImpl " entity-name="ESADoutCustomsConditionsType" abstract="false" lazy="false" table="`esadoutcustomsconditionst`">
> <meta attribute="eclassName">ESADoutCustomsConditionsType</meta >
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <id type="long" name="e_id" column="e_id" access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
> <meta attribute="syntheticVersion">true</meta>
> </version>
> <list name="processingGoods" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutcustomsconditio_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutcustomsconditi_idx`"/>
> <one-to-many entity-name="ProcessingGoodsType"/>
> </list>
> </class>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutDeclarantTypeImpl " entity-name="ESADoutDeclarantType" abstract="false" lazy="false" extends="ESADOrganizationType" table="`esadoutdeclaranttype`">
> <meta attribute="eclassName">ESADoutDeclarantType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadorganizationtype_e_id`"/>
> </key>
> <many-to-one name="branchDescription" entity-name="BranchDescriptionType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`branchdescriptiontype__id`"/>
> </many-to-one>
> <many-to-one name="eSADoutFilledPerson" entity-name="ESADFilledPersonType" cascade="all" lazy="false" insert="true" update="true" not-null="true">
> <column not-null="true" unique="false" name="`esadfilledpersontype_e_id`"/>
> </many-to-one>
> <many-to-one name="customsBrokerContract" entity-name="CustomsBrokerType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`customsbrokertype_cust_id`"/>
> </many-to-one>
> </joined-subclass>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutFinancialAdjustingResponsiblePersonTypeImpl " entity-name="ESADoutFinancialAdjustingResponsiblePersonType " abstract="false" lazy="false" extends="ESADOrganizationType" table="`esadoutfinancialadjusting`">
> <meta attribute="eclassName">ESADoutFinancialAdjustingResponsiblePersonType </meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadorganizationtype_e_id`"/>
> </key>
> <many-to-one name="branchDescription" entity-name="BranchDescriptionType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`branchdescriptiontype__id`"/>
> </many-to-one>
> </joined-subclass>
> <class name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.ESADGoo dsLocationTypeImpl " entity-name="ESADGoodsLocationType" abstract="false" lazy="false" table="`esadgoodslocationtype`">
> <meta attribute="eclassName">ESADGoodsLocationType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <id type="long" name="e_id" column="e_id" access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
> <meta attribute="syntheticVersion">true</meta>
> </version>
> <property name="informationTypeCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`informationtypecode`" length="2"/>
> </property>
> <many-to-one name="goodsLocationWarehouse" entity-name="GoodsLocationWarehouseType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`goodslocationwarehouse_id`"/>
> </many-to-one>
> <many-to-one name="goodsLocationPlace" entity-name="GoodsLocationPlaceType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`goodslocationplacetype_id`"/>
> </many-to-one>
> </class>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutGoodsLocationTypeImpl " entity-name="ESADoutGoodsLocationType" abstract="false" lazy="false" extends="ESADGoodsLocationType" table="`esadoutgoodslocationtype`">
> <meta attribute="eclassName">ESADoutGoodsLocationType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadgoodslocationtype__id`"/>
> </key>
> </joined-subclass>
> <class name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.ESADGoo dsShipmentTypeImpl " entity-name="ESADGoodsShipmentType" abstract="false" lazy="false" table="`esadgoodsshipmenttype`">
> <meta attribute="eclassName">ESADGoodsShipmentType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <id type="long" name="e_id" column="e_id" access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
> <meta attribute="syntheticVersion">true</meta>
> </version>
> <property name="originCountryName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`origincountryname`" length="35"/>
> </property>
> <property name="specificationNumber" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`specificationnumber`" precision="5" scale="0"/>
> </property>
> <property name="specificationListNumber" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`specificationlistnumber`" precision="5" scale="0"/>
> </property>
> <property name="totalGoodsNumber" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigInteger">
> <column not-null="false" unique="false" name="`totalgoodsnumber`" precision="5" scale="0"/>
> </property>
> <property name="totalPackageNumber" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`totalpackagenumber`" precision="8" scale="0"/>
> </property>
> <property name="totalSheetNumber" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`totalsheetnumber`" precision="5" scale="0"/>
> </property>
> <property name="originCountryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`origincountrycode`"/>
> </property>
> <property name="countryCodeIndicator" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`countrycodeindicator`" precision="1" scale="0"/>
> </property>
> <property name="totalCustCost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`totalcustcost`" precision="16" scale="2"/>
> </property>
> <property name="custCostCurrencyCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`custcostcurrencycode`"/>
> </property>
> </class>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutGoodsShipmentTypeImpl " entity-name="ESADoutGoodsShipmentType" abstract="false" lazy="false" extends="ESADGoodsShipmentType" table="`esadoutgoodsshipmenttype`">
> <meta attribute="eclassName">ESADoutGoodsShipmentType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadgoodsshipmenttype__id`"/>
> </key>
> <many-to-one name="eSADoutConsignor" entity-name="ESADoutConsignorType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutconsignortype_e_id`"/>
> </many-to-one>
> <many-to-one name="eSADoutConsignee" entity-name="ESADoutConsigneeType" cascade="all" lazy="false" insert="true" update="true" not-null="true">
> <column not-null="true" unique="false" name="`esadoutconsigneetype_e_id`"/>
> </many-to-one>
> <many-to-one name="eSADoutFinancialAdjustingResponsiblePerson" entity-name="ESADoutFinancialAdjustingResponsiblePersonType " cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutfinancialadjust_id`"/>
> </many-to-one>
> <many-to-one name="eSADoutDeclarant" entity-name="ESADoutDeclarantType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutdeclaranttype_e_id`"/>
> </many-to-one>
> <many-to-one name="eSADoutPrincipal" entity-name="ESADoutPrincipalType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutprincipaltype_e_id`"/>
> </many-to-one>
> <many-to-one name="eSADoutCarrier" entity-name="ESADoutCarrierType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutcarriertype_esa_id`"/>
> </many-to-one>
> <list name="eSADoutGoodsLocation" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutgoodsshipmentty_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutgoodsshipmentt_idx`"/>
> <one-to-many entity-name="ESADoutGoodsLocationType"/>
> </list>
> <many-to-one name="eSADoutConsigment" entity-name="ESADoutConsigmentType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutconsigmenttype__id`"/>
> </many-to-one>
> <many-to-one name="eSADoutMainContractTerms" entity-name="ESADoutMainContractTermsType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutmaincontractter_id`"/>
> </many-to-one>
> <list name="eSADoutGoods" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutgoodsshipmentty_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutgoodsshipmentt_idx`"/>
> <one-to-many entity-name="ESADoutGoodsType"/>
> </list>
> <many-to-one name="eSADoutPayments" entity-name="ESADoutPaymentsType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutpaymentstype_es_id`"/>
> </many-to-one>
> <many-to-one name="guarantee" entity-name="GuaranteeType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`guaranteetype_guarante_id`"/>
> </many-to-one>
> <many-to-one name="eSADoutCustomsConditions" entity-name="ESADoutCustomsConditionsType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutcustomsconditio_id`"/>
> </many-to-one>
> </joined-subclass>
> <class name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.GoodsIt emBaseTypeImpl " entity-name="GoodsItemBaseType" abstract="false" lazy="false" table="`goodsitembasetype`">
> <meta attribute="eclassName">GoodsItemBaseType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <id type="long" name="e_id" column="e_id" access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
> <meta attribute="syntheticVersion">true</meta>
> </version>
> <property name="goodsNumeric" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger">
> <column not-null="false" unique="false" name="`goodsnumeric`" precision="5" scale="0"/>
> </property>
> <list name="goodsDescription" table="`goodsdescription2`" lazy="true" cascade="all,delete-orphan">
> <key/>
> <list-index column="`goodsitembasetype_goo_idx`"/>
> <element type="java.lang.String"/>
> </list>
> <property name="grossWeightQuantity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`grossweightquantity`" precision="19" scale="6"/>
> </property>
> <property name="netWeightQuantity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`netweightquantity`" precision="19" scale="6"/>
> </property>
> <property name="invoicedCost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`invoicedcost`" precision="16" scale="2"/>
> </property>
> <property name="customsCost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`customscost`" precision="16" scale="2"/>
> </property>
> <property name="statisticalCost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`statisticalcost`" precision="16" scale="2"/>
> </property>
> </class>
> <joined-subclass name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.ESADGoo dsItemTypeImpl " entity-name="ESADGoodsItemType" abstract="false" lazy="false" extends="GoodsItemBaseType" table="`esadgoodsitemtype`">
> <meta attribute="eclassName">ESADGoodsItemType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <key>
> <column name="`goodsitembasetype_e_id`"/>
> </key>
> <property name="goodsTNVEDCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`goodstnvedcode`"/>
> </property>
> <property name="goodsClassificationCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`goodsclassificationcode`" length="1"/>
> </property>
> <property name="additionalSign" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`additionalsign`" length="1"/>
> </property>
> <property name="beginPeriodDate" lazy="false" insert="true" update="true" not-null="false" unique="false">
> <column not-null="false" unique="false" name="`beginperioddate`"/>
> <type name=" org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserT ype ">
> <param name="edatatype">DateCustType</param>
> <param name="epackage">urn:customs.ru:CommonLeafTypes:3.0.1</param >
> </type>
> </property>
> <property name="endPeriodDate" lazy="false" insert="true" update="true" not-null="false" unique="false">
> <column not-null="false" unique="false" name="`endperioddate`"/>
> <type name=" org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserT ype ">
> <param name="edatatype">DateCustType</param>
> <param name="epackage">urn:customs.ru:CommonLeafTypes:3.0.1</param >
> </type>
> </property>
> <property name="originCountryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`origincountrycode`"/>
> </property>
> <property name="originCountryName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`origincountryname`" length="35"/>
> </property>
> <property name="countryCodeIndicator" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`countrycodeindicator`" precision="1" scale="0"/>
> </property>
> <property name="preferencii" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`preferencii`" length="4"/>
> </property>
> <property name="destinationCountryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`destinationcountrycode`"/>
> </property>
> <property name="conformityStatCostIndicator" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
> <column not-null="false" unique="false" name="`conformitystatcostindica"/>
> </property>
> <property name="goodsShipmentUCR" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`goodsshipmentucr`" length="36"/>
> </property>
> <list name="goodsGroupDescription" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadgoodsitemtype_good_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadgoodsitemtype_goo_idx`"/>
> <one-to-many entity-name="GoodsGroupDescriptionType"/>
> </list>
> </joined-subclass>
> <joined-subclass name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.ESADGoo dsTypeImpl " entity-name="ESADGoodsType" abstract="false" lazy="false" extends="ESADGoodsItemType" table="`esadgoodstype`">
> <meta attribute="eclassName">ESADGoodsType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <key>
> <column name="`esadgoodsitemtype_e_id`"/>
> </key>
> <property name="additionalSheetCount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`additionalsheetcount`" precision="5" scale="0"/>
> </property>
> <property name="formNumber" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`formnumber`" length="8"/>
> </property>
> <many-to-one name="eSADGoodsPackaging" entity-name="ESADGoodsPackagingType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadgoodspackagingtype_id`"/>
> </many-to-one>
> <many-to-one name="eSADContainer" entity-name="ESADContainerType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadcontainertype_esad_id`"/>
> </many-to-one>
> <list name="eSADExcise" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadgoodstype_esadexci_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadgoodstype_esadexc_idx`"/>
> <one-to-many entity-name="ESADExciseType"/>
> </list>
> <many-to-one name="supplementaryGoodsQuantity" entity-name="SupplementaryQuantityType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`supplementaryquantityt_id`"/>
> </many-to-one>
> <list name="supplementaryGoodsQuantity1" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadgoodstype_suppleme_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadgoodstype_supplem_idx`"/>
> <one-to-many entity-name="SupplementaryQuantityType"/>
> </list>
> <list name="eSADElectricalEnergyQuantity" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadgoodstype_esadelec_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadgoodstype_esadele_idx`"/>
> <one-to-many entity-name="ESADElectricalEnergyQuantityType"/>
> </list>
> <many-to-one name="eSADGoodsQuota" entity-name="ESADGoodsQuotaType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadgoodsquotatype_esa_id`"/>
> </many-to-one>
> <many-to-one name="eSADCustomsProcedure" entity-name="ESADCustomsProcedureType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadcustomsprocedurety_id`"/>
> </many-to-one>
> </joined-subclass>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutGoodsTypeImpl " entity-name="ESADoutGoodsType" abstract="false" lazy="false" extends="ESADGoodsType" table="`esadoutgoodstype`">
> <meta attribute="eclassName">ESADoutGoodsType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadgoodstype_e_id`"/>
> </key>
> <many-to-one name="eSADoutPresentedDocument" entity-name="ESADoutPresentedDocumentsType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutpresenteddocume_id`"/>
> </many-to-one>
> <list name="eSADoutPrecedingDocument" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutgoodstype_esado_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutgoodstype_esad_idx`"/>
> <one-to-many entity-name="ESADPrecedingDocumentType"/>
> </list>
> <list name="eSADoutCustomsPaymentCalculation" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutgoodstype_esado_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutgoodstype_esad_idx`"/>
> <one-to-many entity-name="ESADCustomsPaymentCalculationType"/>
> </list>
> <list name="eSADoutContractList" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutgoodstype_esado_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutgoodstype_esad_idx`"/>
> <one-to-many entity-name="ESADContractListType"/>
> </list>
> <list name="eSADoutGoodsAutomobile" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutgoodstype_esado_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutgoodstype_esad_idx`"/>
> <one-to-many entity-name="ESADAutomobileType"/>
> </list>
> <many-to-one name="eSADoutGoodsOrganization" entity-name="ESADoutConsignorType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutconsignortype_e_id`"/>
> </many-to-one>
> </joined-subclass>
> <class name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.ESADLoa dingPlaceTypeImpl " entity-name="ESADLoadingPlaceType" abstract="false" lazy="false" table="`esadloadingplacetype`">
> <meta attribute="eclassName">ESADLoadingPlaceType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <id type="long" name="e_id" column="e_id" access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
> <meta attribute="syntheticVersion">true</meta>
> </version>
> <property name="informationTypeCode" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`informationtypecode`" length="2"/>
> </property>
> <many-to-one name="loadingPlaceWarehouse" entity-name="LoadingPlaceWarehouseType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`loadingplacewarehouset_id`"/>
> </many-to-one>
> <many-to-one name="loadingPlaseConsignee" entity-name="LoadingPlaseConsigneeType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`loadingplaseconsigneet_id`"/>
> </many-to-one>
> <list name="loadingPlaceOther" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadloadingplacetype_l_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadloadingplacetype__idx`"/>
> <one-to-many entity-name="LoadingPlaceOtherType"/>
> </list>
> </class>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutLoadingPlaceTypeImpl " entity-name="ESADoutLoadingPlaceType" abstract="false" lazy="false" extends="ESADLoadingPlaceType" table="`esadoutloadingplacetype`">
> <meta attribute="eclassName">ESADoutLoadingPlaceType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadloadingplacetype_e_id`"/>
> </key>
> </joined-subclass>
> <class name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.ESADCon tractCostTypeImpl " entity-name="ESADContractCostType" abstract="false" lazy="false" table="`esadcontractcosttype`">
> <meta attribute="eclassName">ESADContractCostType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <id type="long" name="e_id" column="e_id" access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
> <meta attribute="syntheticVersion">true</meta>
> </version>
> <property name="contractCurrencyCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`contractcurrencycode`" length="3"/>
> </property>
> <property name="contractCurrencyRate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`contractcurrencyrate`" precision="11" scale="4"/>
> </property>
> <property name="currencyRateDate" lazy="false" insert="true" update="true" not-null="false" unique="false">
> <column not-null="false" unique="false" name="`currencyratedate`"/>
> <type name=" org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserT ype ">
> <param name="edatatype">DateCustType</param>
> <param name="epackage">urn:customs.ru:CommonLeafTypes:3.0.1</param >
> </type>
> </property>
> <property name="totalInvoiceAmount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`totalinvoiceamount`" precision="16" scale="2"/>
> </property>
> </class>
> <joined-subclass name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.ESADMai nContractTermsTypeImpl " entity-name="ESADMainContractTermsType" abstract="false" lazy="false" extends="ESADContractCostType" table="`esadmaincontracttermstype`">
> <meta attribute="eclassName">ESADMainContractTermsType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <key>
> <column name="`esadcontractcosttype_e_id`"/>
> </key>
> <property name="tradeCountryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`tradecountrycode`"/>
> </property>
> <property name="additionalFinancialData" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`additionalfinancialdata`" length="250"/>
> </property>
> <many-to-one name="eSADDeliveryTerms" entity-name="DeliveryTermsType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`deliverytermstype_esad_id`"/>
> </many-to-one>
> <list name="financialDocuments" lazy="true" casc
Re: [Teneo] Persistence Options [message #83673 is a reply to message #83657] Wed, 16 May 2007 08:34 Go to previous messageGo to next message
Roman Bliznets is currently offline Roman BliznetsFriend
Messages: 75
Registered: July 2009
Member
No Message Body
  • Attachment: model.rar
    (Size: 50.03KB, Downloaded 128 times)
Re: [Teneo] Persistence Options [message #83776 is a reply to message #83673] Thu, 17 May 2007 05:27 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
I tested this and the goodsDescription2, goodsDescription3, goodsDescription4, goodsDescription5
tables are created correctly.
Are you sure it found the persistence xml?
Can you also check if the epackage uri (urn:customs.ru:ESADCommonAggregateTypes:3.0.1) is exactly
the same as the epackage uri defined in the generated java code?

--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Persistence Options [message #83824 is a reply to message #83776] Thu, 17 May 2007 11:25 Go to previous message
Roman Bliznets is currently offline Roman BliznetsFriend
Messages: 75
Registered: July 2009
Member
Martin, Thanks!

I have generated all classes and create project anew, and mistake
disappeared. Soon as possible I read old persistence.xml...

It well work.
Thanks.
Re: [Teneo] Persistence Options [message #606626 is a reply to message #82536] Tue, 08 May 2007 13:43 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi,
There is also a persistence-mapping.xsd in org.eclipse.emf.teneo.hibernate.hbannotation.util (at
least in the build I downloaded). Can you check if that one is present in the build you downloaded?

gr. Martin

wolf_roma wrote:
> Hello... I'm try to use PersistenceOptions.PERSISTENCE_XML and get an
> exception:
>
> java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:394)
> at org.apache.xerces.util.ParserConfigurationSettings.setProper ty(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.setProperty(Unk nown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.setProperty(Unkn own Source)
> at org.apache.xerces.jaxp.SAXParserImpl.setProperty(Unknown Source)
> at
> org.eclipse.emf.teneo.annotations.xml.XmlPersistenceMapper.a pplyPersistenceMapping(XmlPersistenceMapper.java:90)
> at
> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:104)
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:531)
> at
> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:149)
> at
> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:70)
> at test.SessionFactoryBean.getSessionFactory(SessionFactoryBean .java:76)
> at customs.ru.categories._3._0._0.tests._0Example.main(_0Exampl e.java:86)
>
> this line:
> saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",
> this.getClass()
> .getResourceAsStream("persistence-mapping.xsd"));
> stream is null and ocurr exception
>
> I check file "persistence-mapping.xsd", it exist and
> XmlPersistenceMapper.class.getResourceAsStream("persistence-mapping.xsd ")
> return not null stream.
> In Debug Mode:
> "this.getClass()"= Class<T>
> (org.eclipse.emf.teneo.hibernate.hbannotation.util.MappingBu ilder$LocalXmlPersistenceMapper)
> and because of it stream=null
>
> What should I do?
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Persistence Options [message #606627 is a reply to message #82553] Tue, 08 May 2007 14:32 Go to previous message
Roman Bliznets is currently offline Roman BliznetsFriend
Messages: 75
Registered: July 2009
Member
It's my mistake, I use source code and it does not contain
persistence-mapping.xsd.

Thanks.
You wrote:
> Hi,
> There is also a persistence-mapping.xsd in
> org.eclipse.emf.teneo.hibernate.hbannotation.util (at least in the build I
> downloaded). Can you check if that one is present in the build you
> downloaded?
>
> gr. Martin
Re: [Teneo] Persistence Options [message #606629 is a reply to message #82566] Tue, 08 May 2007 14:57 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Okay, so this issue is solved?

gr. Martin

wolf_roma wrote:
> It's my mistake, I use source code and it does not contain
> persistence-mapping.xsd.
>
> Thanks.
> You wrote:
>> Hi,
>> There is also a persistence-mapping.xsd in
>> org.eclipse.emf.teneo.hibernate.hbannotation.util (at least in the build I
>> downloaded). Can you check if that one is present in the build you
>> downloaded?
>>
>> gr. Martin
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Persistence Options [message #606674 is a reply to message #82596] Fri, 11 May 2007 07:13 Go to previous message
Roman Bliznets is currently offline Roman BliznetsFriend
Messages: 75
Registered: July 2009
Member
Yes, it solved
Re: [Teneo] Persistence Options [message #606701 is a reply to message #83169] Wed, 16 May 2007 06:55 Go to previous message
Roman Bliznets is currently offline Roman BliznetsFriend
Messages: 75
Registered: July 2009
Member
Hello :). Haven't seen many time...
I have another problem:
persistence.xml:
<?xml version="1.0" encoding="utf-8"?>
<persistence-mapping xmlns="http://www.eclipse.org/emft/teneo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<epackage
namespace-uri="urn:customs.ru:ESADCommonAggregateTypes:3.0.1 ">
<eclass name="GoodsItemBaseType">
<property name="goodsDescription">
<join-table name="goodsdescription2"/>
</property>
</eclass>
<eclass name="ProcessingGoodsType">
<property name="goodsDescription">
<join-table name="goodsdescription3"/>
</property>
</eclass>
<eclass name="GoodsGroupDescriptionType">
<property name="goodsDescription">
<join-table name="goodsdescription4"/>
</property>
</eclass>
</epackage>
<epackage namespace-uri="urn:customs.ru:CommonAggregateTypes:3.0.1">
<eclass name="GoodsBaseType">
<property name="goodsDescription">
<join-table name="goodsdescription5"/>
</property>
</eclass>
</epackage>
</persistence-mapping>

Teneo create table only for first eclass GoodsItemBaseType, but on another
eclasses it isn't.
Re: [Teneo] Persistence Options [message #606702 is a reply to message #83559] Wed, 16 May 2007 07:11 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
I don't remember how your model looks like exactly but is GoodsItemBaseType the base type for the
others and do you use single-table inheritance mapping?
How does the hbm look like for this property?

and what happens if you change the order in the persistence.xml?

gr. Martin

wolf_roma wrote:
> Hello :). Haven't seen many time...
> I have another problem:
> persistence.xml:
> <?xml version="1.0" encoding="utf-8"?>
> <persistence-mapping xmlns="http://www.eclipse.org/emft/teneo"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>
> <epackage
> namespace-uri="urn:customs.ru:ESADCommonAggregateTypes:3.0.1 ">
> <eclass name="GoodsItemBaseType">
> <property name="goodsDescription">
> <join-table name="goodsdescription2"/>
> </property>
> </eclass>
> <eclass name="ProcessingGoodsType">
> <property name="goodsDescription">
> <join-table name="goodsdescription3"/>
> </property>
> </eclass>
> <eclass name="GoodsGroupDescriptionType">
> <property name="goodsDescription">
> <join-table name="goodsdescription4"/>
> </property>
> </eclass>
> </epackage>
> <epackage namespace-uri="urn:customs.ru:CommonAggregateTypes:3.0.1">
> <eclass name="GoodsBaseType">
> <property name="goodsDescription">
> <join-table name="goodsdescription5"/>
> </property>
> </eclass>
> </epackage>
> </persistence-mapping>
>
> Teneo create table only for first eclass GoodsItemBaseType, but on another
> eclasses it isn't.
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Persistence Options [message #606703 is a reply to message #83574] Wed, 16 May 2007 07:49 Go to previous message
Roman Bliznets is currently offline Roman BliznetsFriend
Messages: 75
Registered: July 2009
Member
I'm use PersistenceOptions.INHERITANCE_MAPPING, "JOINED".

I checked all classes.
Each class independent from others.
I try change order and it doesn't have result.
Table create only for GoodsItemBaseType class.
Re: [Teneo] Persistence Options [message #606704 is a reply to message #83589] Wed, 16 May 2007 07:56 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Can you post the hbm just for these properties?

gr. Martin

wolf_roma wrote:
> I'm use PersistenceOptions.INHERITANCE_MAPPING, "JOINED".
>
> I checked all classes.
> Each class independent from others.
> I try change order and it doesn't have result.
> Table create only for GoodsItemBaseType class.
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Persistence Options [message #606705 is a reply to message #83601] Wed, 16 May 2007 08:02 Go to previous message
Roman Bliznets is currently offline Roman BliznetsFriend
Messages: 75
Registered: July 2009
Member
my.xml - hibernate mapping xml


  • Attachment: my.xml
    (Size: 225.64KB, Downloaded 256 times)
Re: [Teneo] Persistence Options [message #606706 is a reply to message #83615] Wed, 16 May 2007 08:26 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Okay, can you send me your ecore file(s) and the persistence.xml? Then I can try this out myself.

gr. Martin

wolf_roma wrote:
> my.xml - hibernate mapping xml
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
>
> <!-- Generated by Teneo on Wed May 16 11:27:33 MSD 2007 -->
> <hibernate-mapping>
> <typedef name="_1.TransportCategoryCodeTypeObject" class=" org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserT ype ">
> <param name="epackage">urn:customs.ru:CommonLeafTypes:3.0.1</param >
> <param name="edatatype">TransportCategoryCodeTypeObject</param>
> </typedef>
> <class name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutBorderTransportTypeImpl " entity-name="ESADoutBorderTransportType" abstract="false" lazy="false" table="`esadoutbordertransporttyp`">
> <meta attribute="eclassName">ESADoutBorderTransportType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <id type="long" name="e_id" column="e_id" access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
> <meta attribute="syntheticVersion">true</meta>
> </version>
> <property name="transportModeCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`transportmodecode`" length="2"/>
> </property>
> <property name="transportNationalityCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`transportnationalitycode"/>
> </property>
> <list name="transportMeans" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutbordertransport_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutbordertranspor_idx`"/>
> <one-to-many entity-name="TransportMeansType"/>
> </list>
> </class>
> <class name=" customs.ru.common.aggregate.types._3._0._1.impl.Organization BaseTypeImpl " entity-name="OrganizationBaseType" abstract="false" lazy="false" table="`organizationbasetype`">
> <meta attribute="eclassName">OrganizationBaseType</meta>
> <meta attribute="epackage">urn:customs.ru:CommonAggregateTypes:3.0.1 </meta>
> <id type="long" name="e_id" column="e_id" access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
> <meta attribute="syntheticVersion">true</meta>
> </version>
> <property name="organizationName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`organizationname`" length="150"/>
> </property>
> <property name="shortName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`shortname`" length="35"/>
> </property>
> <property name="oGRN" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`ogrn`"/>
> </property>
> <property name="iNN" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`inn`" length="12"/>
> </property>
> <property name="kPP" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`kpp`"/>
> </property>
> </class>
> <joined-subclass name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.ESADOrg anizationTypeImpl " entity-name="ESADOrganizationType" abstract="false" lazy="false" extends="OrganizationBaseType" table="`esadorganizationtype`">
> <meta attribute="eclassName">ESADOrganizationType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <key>
> <column name="`organizationbasetype_e_id`"/>
> </key>
> <many-to-one name="address" entity-name="AddressType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`addresstype_address_e_id`"/>
> </many-to-one>
> <many-to-one name="identityCard" entity-name="IdentityCardType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`identitycardtype_ident_id`"/>
> </many-to-one>
> </joined-subclass>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutCarrierTypeImpl " entity-name="ESADoutCarrierType" abstract="false" lazy="false" extends="ESADOrganizationType" table="`esadoutcarriertype`">
> <meta attribute="eclassName">ESADoutCarrierType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadorganizationtype_e_id`"/>
> </key>
> <list name="eSADDriverInformation" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutcarriertype_esa_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutcarriertype_es_idx`"/>
> <one-to-many entity-name="ESADDriverInformationType"/>
> </list>
> </joined-subclass>
> <class name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.ESADCon sigmentTypeImpl " entity-name="ESADConsigmentType" abstract="false" lazy="false" table="`esadconsigmenttype`">
> <meta attribute="eclassName">ESADConsigmentType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <id type="long" name="e_id" column="e_id" access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
> <meta attribute="syntheticVersion">true</meta>
> </version>
> <property name="containerIndicator" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
> <column not-null="false" unique="false" name="`containerindicator`"/>
> </property>
> <property name="dispatchCountryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`dispatchcountrycode`"/>
> </property>
> <property name="dispatchCountryName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`dispatchcountryname`" length="35"/>
> </property>
> <property name="destinationCountryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`destinationcountrycode`"/>
> </property>
> <property name="destinationCountryName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`destinationcountryname`" length="35"/>
> </property>
> <many-to-one name="deliveryCustomsOffice" entity-name="CustomsType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`customstype_deliverycu_id`"/>
> </many-to-one>
> <list name="borderCustomsOffice" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadconsigmenttype_bor_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadconsigmenttype_bo_idx`"/>
> <one-to-many entity-name="CustomsType"/>
> </list>
> </class>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutConsigmentTypeImpl " entity-name="ESADoutConsigmentType" abstract="false" lazy="false" extends="ESADConsigmentType" table="`esadoutconsigmenttype`">
> <meta attribute="eclassName">ESADoutConsigmentType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadconsigmenttype_e_id`"/>
> </key>
> <many-to-one name="eSADoutDepartureArrivalTransport" entity-name="ESAoutDepartureArrivalTransportType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esaoutdeparturearrival_id`"/>
> </many-to-one>
> <many-to-one name="eSADoutBorderTransport" entity-name="ESADoutBorderTransportType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutbordertransport_id`"/>
> </many-to-one>
> <many-to-one name="eSADoutLoadingPlace" entity-name="ESADoutLoadingPlaceType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutloadingplacetyp_id`"/>
> </many-to-one>
> <list name="eSADoutReloadingInfo" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutconsigmenttype__id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutconsigmenttype_idx`"/>
> <one-to-many entity-name="ESADReloadingInfoType"/>
> </list>
> </joined-subclass>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutConsigneeTypeImpl " entity-name="ESADoutConsigneeType" abstract="false" lazy="false" extends="ESADOrganizationType" table="`esadoutconsigneetype`">
> <meta attribute="eclassName">ESADoutConsigneeType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadorganizationtype_e_id`"/>
> </key>
> <property name="contractorIndicator" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`contractorindicator`" length="1"/>
> </property>
> </joined-subclass>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutConsignorTypeImpl " entity-name="ESADoutConsignorType" abstract="false" lazy="false" extends="ESADOrganizationType" table="`esadoutconsignortype`">
> <meta attribute="eclassName">ESADoutConsignorType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadorganizationtype_e_id`"/>
> </key>
> <property name="bowelsINN" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`bowelsinn`" length="12"/>
> </property>
> <property name="bowelsOKPO" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`bowelsokpo`" length="10"/>
> </property>
> </joined-subclass>
> <class name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutCustomsConditionsTypeImpl " entity-name="ESADoutCustomsConditionsType" abstract="false" lazy="false" table="`esadoutcustomsconditionst`">
> <meta attribute="eclassName">ESADoutCustomsConditionsType</meta >
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <id type="long" name="e_id" column="e_id" access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
> <meta attribute="syntheticVersion">true</meta>
> </version>
> <list name="processingGoods" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutcustomsconditio_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutcustomsconditi_idx`"/>
> <one-to-many entity-name="ProcessingGoodsType"/>
> </list>
> </class>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutDeclarantTypeImpl " entity-name="ESADoutDeclarantType" abstract="false" lazy="false" extends="ESADOrganizationType" table="`esadoutdeclaranttype`">
> <meta attribute="eclassName">ESADoutDeclarantType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadorganizationtype_e_id`"/>
> </key>
> <many-to-one name="branchDescription" entity-name="BranchDescriptionType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`branchdescriptiontype__id`"/>
> </many-to-one>
> <many-to-one name="eSADoutFilledPerson" entity-name="ESADFilledPersonType" cascade="all" lazy="false" insert="true" update="true" not-null="true">
> <column not-null="true" unique="false" name="`esadfilledpersontype_e_id`"/>
> </many-to-one>
> <many-to-one name="customsBrokerContract" entity-name="CustomsBrokerType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`customsbrokertype_cust_id`"/>
> </many-to-one>
> </joined-subclass>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutFinancialAdjustingResponsiblePersonTypeImpl " entity-name="ESADoutFinancialAdjustingResponsiblePersonType " abstract="false" lazy="false" extends="ESADOrganizationType" table="`esadoutfinancialadjusting`">
> <meta attribute="eclassName">ESADoutFinancialAdjustingResponsiblePersonType </meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadorganizationtype_e_id`"/>
> </key>
> <many-to-one name="branchDescription" entity-name="BranchDescriptionType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`branchdescriptiontype__id`"/>
> </many-to-one>
> </joined-subclass>
> <class name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.ESADGoo dsLocationTypeImpl " entity-name="ESADGoodsLocationType" abstract="false" lazy="false" table="`esadgoodslocationtype`">
> <meta attribute="eclassName">ESADGoodsLocationType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <id type="long" name="e_id" column="e_id" access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
> <meta attribute="syntheticVersion">true</meta>
> </version>
> <property name="informationTypeCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`informationtypecode`" length="2"/>
> </property>
> <many-to-one name="goodsLocationWarehouse" entity-name="GoodsLocationWarehouseType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`goodslocationwarehouse_id`"/>
> </many-to-one>
> <many-to-one name="goodsLocationPlace" entity-name="GoodsLocationPlaceType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`goodslocationplacetype_id`"/>
> </many-to-one>
> </class>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutGoodsLocationTypeImpl " entity-name="ESADoutGoodsLocationType" abstract="false" lazy="false" extends="ESADGoodsLocationType" table="`esadoutgoodslocationtype`">
> <meta attribute="eclassName">ESADoutGoodsLocationType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadgoodslocationtype__id`"/>
> </key>
> </joined-subclass>
> <class name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.ESADGoo dsShipmentTypeImpl " entity-name="ESADGoodsShipmentType" abstract="false" lazy="false" table="`esadgoodsshipmenttype`">
> <meta attribute="eclassName">ESADGoodsShipmentType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <id type="long" name="e_id" column="e_id" access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
> <meta attribute="syntheticVersion">true</meta>
> </version>
> <property name="originCountryName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`origincountryname`" length="35"/>
> </property>
> <property name="specificationNumber" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`specificationnumber`" precision="5" scale="0"/>
> </property>
> <property name="specificationListNumber" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`specificationlistnumber`" precision="5" scale="0"/>
> </property>
> <property name="totalGoodsNumber" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.math.BigInteger">
> <column not-null="false" unique="false" name="`totalgoodsnumber`" precision="5" scale="0"/>
> </property>
> <property name="totalPackageNumber" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`totalpackagenumber`" precision="8" scale="0"/>
> </property>
> <property name="totalSheetNumber" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`totalsheetnumber`" precision="5" scale="0"/>
> </property>
> <property name="originCountryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`origincountrycode`"/>
> </property>
> <property name="countryCodeIndicator" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`countrycodeindicator`" precision="1" scale="0"/>
> </property>
> <property name="totalCustCost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`totalcustcost`" precision="16" scale="2"/>
> </property>
> <property name="custCostCurrencyCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`custcostcurrencycode`"/>
> </property>
> </class>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutGoodsShipmentTypeImpl " entity-name="ESADoutGoodsShipmentType" abstract="false" lazy="false" extends="ESADGoodsShipmentType" table="`esadoutgoodsshipmenttype`">
> <meta attribute="eclassName">ESADoutGoodsShipmentType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadgoodsshipmenttype__id`"/>
> </key>
> <many-to-one name="eSADoutConsignor" entity-name="ESADoutConsignorType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutconsignortype_e_id`"/>
> </many-to-one>
> <many-to-one name="eSADoutConsignee" entity-name="ESADoutConsigneeType" cascade="all" lazy="false" insert="true" update="true" not-null="true">
> <column not-null="true" unique="false" name="`esadoutconsigneetype_e_id`"/>
> </many-to-one>
> <many-to-one name="eSADoutFinancialAdjustingResponsiblePerson" entity-name="ESADoutFinancialAdjustingResponsiblePersonType " cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutfinancialadjust_id`"/>
> </many-to-one>
> <many-to-one name="eSADoutDeclarant" entity-name="ESADoutDeclarantType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutdeclaranttype_e_id`"/>
> </many-to-one>
> <many-to-one name="eSADoutPrincipal" entity-name="ESADoutPrincipalType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutprincipaltype_e_id`"/>
> </many-to-one>
> <many-to-one name="eSADoutCarrier" entity-name="ESADoutCarrierType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutcarriertype_esa_id`"/>
> </many-to-one>
> <list name="eSADoutGoodsLocation" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutgoodsshipmentty_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutgoodsshipmentt_idx`"/>
> <one-to-many entity-name="ESADoutGoodsLocationType"/>
> </list>
> <many-to-one name="eSADoutConsigment" entity-name="ESADoutConsigmentType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutconsigmenttype__id`"/>
> </many-to-one>
> <many-to-one name="eSADoutMainContractTerms" entity-name="ESADoutMainContractTermsType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutmaincontractter_id`"/>
> </many-to-one>
> <list name="eSADoutGoods" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutgoodsshipmentty_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutgoodsshipmentt_idx`"/>
> <one-to-many entity-name="ESADoutGoodsType"/>
> </list>
> <many-to-one name="eSADoutPayments" entity-name="ESADoutPaymentsType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutpaymentstype_es_id`"/>
> </many-to-one>
> <many-to-one name="guarantee" entity-name="GuaranteeType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`guaranteetype_guarante_id`"/>
> </many-to-one>
> <many-to-one name="eSADoutCustomsConditions" entity-name="ESADoutCustomsConditionsType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutcustomsconditio_id`"/>
> </many-to-one>
> </joined-subclass>
> <class name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.GoodsIt emBaseTypeImpl " entity-name="GoodsItemBaseType" abstract="false" lazy="false" table="`goodsitembasetype`">
> <meta attribute="eclassName">GoodsItemBaseType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <id type="long" name="e_id" column="e_id" access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
> <meta attribute="syntheticVersion">true</meta>
> </version>
> <property name="goodsNumeric" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger">
> <column not-null="false" unique="false" name="`goodsnumeric`" precision="5" scale="0"/>
> </property>
> <list name="goodsDescription" table="`goodsdescription2`" lazy="true" cascade="all,delete-orphan">
> <key/>
> <list-index column="`goodsitembasetype_goo_idx`"/>
> <element type="java.lang.String"/>
> </list>
> <property name="grossWeightQuantity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`grossweightquantity`" precision="19" scale="6"/>
> </property>
> <property name="netWeightQuantity" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`netweightquantity`" precision="19" scale="6"/>
> </property>
> <property name="invoicedCost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`invoicedcost`" precision="16" scale="2"/>
> </property>
> <property name="customsCost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`customscost`" precision="16" scale="2"/>
> </property>
> <property name="statisticalCost" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`statisticalcost`" precision="16" scale="2"/>
> </property>
> </class>
> <joined-subclass name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.ESADGoo dsItemTypeImpl " entity-name="ESADGoodsItemType" abstract="false" lazy="false" extends="GoodsItemBaseType" table="`esadgoodsitemtype`">
> <meta attribute="eclassName">ESADGoodsItemType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <key>
> <column name="`goodsitembasetype_e_id`"/>
> </key>
> <property name="goodsTNVEDCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`goodstnvedcode`"/>
> </property>
> <property name="goodsClassificationCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`goodsclassificationcode`" length="1"/>
> </property>
> <property name="additionalSign" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`additionalsign`" length="1"/>
> </property>
> <property name="beginPeriodDate" lazy="false" insert="true" update="true" not-null="false" unique="false">
> <column not-null="false" unique="false" name="`beginperioddate`"/>
> <type name=" org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserT ype ">
> <param name="edatatype">DateCustType</param>
> <param name="epackage">urn:customs.ru:CommonLeafTypes:3.0.1</param >
> </type>
> </property>
> <property name="endPeriodDate" lazy="false" insert="true" update="true" not-null="false" unique="false">
> <column not-null="false" unique="false" name="`endperioddate`"/>
> <type name=" org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserT ype ">
> <param name="edatatype">DateCustType</param>
> <param name="epackage">urn:customs.ru:CommonLeafTypes:3.0.1</param >
> </type>
> </property>
> <property name="originCountryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`origincountrycode`"/>
> </property>
> <property name="originCountryName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`origincountryname`" length="35"/>
> </property>
> <property name="countryCodeIndicator" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`countrycodeindicator`" precision="1" scale="0"/>
> </property>
> <property name="preferencii" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`preferencii`" length="4"/>
> </property>
> <property name="destinationCountryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`destinationcountrycode`"/>
> </property>
> <property name="conformityStatCostIndicator" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
> <column not-null="false" unique="false" name="`conformitystatcostindica"/>
> </property>
> <property name="goodsShipmentUCR" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`goodsshipmentucr`" length="36"/>
> </property>
> <list name="goodsGroupDescription" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadgoodsitemtype_good_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadgoodsitemtype_goo_idx`"/>
> <one-to-many entity-name="GoodsGroupDescriptionType"/>
> </list>
> </joined-subclass>
> <joined-subclass name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.ESADGoo dsTypeImpl " entity-name="ESADGoodsType" abstract="false" lazy="false" extends="ESADGoodsItemType" table="`esadgoodstype`">
> <meta attribute="eclassName">ESADGoodsType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <key>
> <column name="`esadgoodsitemtype_e_id`"/>
> </key>
> <property name="additionalSheetCount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`additionalsheetcount`" precision="5" scale="0"/>
> </property>
> <property name="formNumber" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`formnumber`" length="8"/>
> </property>
> <many-to-one name="eSADGoodsPackaging" entity-name="ESADGoodsPackagingType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadgoodspackagingtype_id`"/>
> </many-to-one>
> <many-to-one name="eSADContainer" entity-name="ESADContainerType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadcontainertype_esad_id`"/>
> </many-to-one>
> <list name="eSADExcise" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadgoodstype_esadexci_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadgoodstype_esadexc_idx`"/>
> <one-to-many entity-name="ESADExciseType"/>
> </list>
> <many-to-one name="supplementaryGoodsQuantity" entity-name="SupplementaryQuantityType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`supplementaryquantityt_id`"/>
> </many-to-one>
> <list name="supplementaryGoodsQuantity1" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadgoodstype_suppleme_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadgoodstype_supplem_idx`"/>
> <one-to-many entity-name="SupplementaryQuantityType"/>
> </list>
> <list name="eSADElectricalEnergyQuantity" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadgoodstype_esadelec_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadgoodstype_esadele_idx`"/>
> <one-to-many entity-name="ESADElectricalEnergyQuantityType"/>
> </list>
> <many-to-one name="eSADGoodsQuota" entity-name="ESADGoodsQuotaType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadgoodsquotatype_esa_id`"/>
> </many-to-one>
> <many-to-one name="eSADCustomsProcedure" entity-name="ESADCustomsProcedureType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadcustomsprocedurety_id`"/>
> </many-to-one>
> </joined-subclass>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutGoodsTypeImpl " entity-name="ESADoutGoodsType" abstract="false" lazy="false" extends="ESADGoodsType" table="`esadoutgoodstype`">
> <meta attribute="eclassName">ESADoutGoodsType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadgoodstype_e_id`"/>
> </key>
> <many-to-one name="eSADoutPresentedDocument" entity-name="ESADoutPresentedDocumentsType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutpresenteddocume_id`"/>
> </many-to-one>
> <list name="eSADoutPrecedingDocument" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutgoodstype_esado_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutgoodstype_esad_idx`"/>
> <one-to-many entity-name="ESADPrecedingDocumentType"/>
> </list>
> <list name="eSADoutCustomsPaymentCalculation" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutgoodstype_esado_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutgoodstype_esad_idx`"/>
> <one-to-many entity-name="ESADCustomsPaymentCalculationType"/>
> </list>
> <list name="eSADoutContractList" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutgoodstype_esado_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutgoodstype_esad_idx`"/>
> <one-to-many entity-name="ESADContractListType"/>
> </list>
> <list name="eSADoutGoodsAutomobile" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadoutgoodstype_esado_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadoutgoodstype_esad_idx`"/>
> <one-to-many entity-name="ESADAutomobileType"/>
> </list>
> <many-to-one name="eSADoutGoodsOrganization" entity-name="ESADoutConsignorType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`esadoutconsignortype_e_id`"/>
> </many-to-one>
> </joined-subclass>
> <class name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.ESADLoa dingPlaceTypeImpl " entity-name="ESADLoadingPlaceType" abstract="false" lazy="false" table="`esadloadingplacetype`">
> <meta attribute="eclassName">ESADLoadingPlaceType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <id type="long" name="e_id" column="e_id" access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
> <meta attribute="syntheticVersion">true</meta>
> </version>
> <property name="informationTypeCode" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`informationtypecode`" length="2"/>
> </property>
> <many-to-one name="loadingPlaceWarehouse" entity-name="LoadingPlaceWarehouseType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`loadingplacewarehouset_id`"/>
> </many-to-one>
> <many-to-one name="loadingPlaseConsignee" entity-name="LoadingPlaseConsigneeType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`loadingplaseconsigneet_id`"/>
> </many-to-one>
> <list name="loadingPlaceOther" lazy="true" cascade="all,delete-orphan">
> <key update="true">
> <column name="`esadloadingplacetype_l_id`" not-null="false" unique="false"/>
> </key>
> <list-index column="`esadloadingplacetype__idx`"/>
> <one-to-many entity-name="LoadingPlaceOtherType"/>
> </list>
> </class>
> <joined-subclass name=" customs.ru.information.customs.documents.esa.dout._3._0._1.i mpl.ESADoutLoadingPlaceTypeImpl " entity-name="ESADoutLoadingPlaceType" abstract="false" lazy="false" extends="ESADLoadingPlaceType" table="`esadoutloadingplacetype`">
> <meta attribute="eclassName">ESADoutLoadingPlaceType</meta>
> <meta attribute="epackage">urn:customs.ru:Information:CustomsDocuments:ESADout:3.0.1 </meta>
> <key>
> <column name="`esadloadingplacetype_e_id`"/>
> </key>
> </joined-subclass>
> <class name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.ESADCon tractCostTypeImpl " entity-name="ESADContractCostType" abstract="false" lazy="false" table="`esadcontractcosttype`">
> <meta attribute="eclassName">ESADContractCostType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <id type="long" name="e_id" column="e_id" access=" org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rPropertyHandler ">
> <meta attribute="syntheticId">true</meta>
> <generator class="native"/>
> </id>
> <version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
> <meta attribute="syntheticVersion">true</meta>
> </version>
> <property name="contractCurrencyCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`contractcurrencycode`" length="3"/>
> </property>
> <property name="contractCurrencyRate" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`contractcurrencyrate`" precision="11" scale="4"/>
> </property>
> <property name="currencyRateDate" lazy="false" insert="true" update="true" not-null="false" unique="false">
> <column not-null="false" unique="false" name="`currencyratedate`"/>
> <type name=" org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserT ype ">
> <param name="edatatype">DateCustType</param>
> <param name="epackage">urn:customs.ru:CommonLeafTypes:3.0.1</param >
> </type>
> </property>
> <property name="totalInvoiceAmount" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigDecimal">
> <column not-null="false" unique="false" name="`totalinvoiceamount`" precision="16" scale="2"/>
> </property>
> </class>
> <joined-subclass name=" customs.ru.esad.common.aggregate.types._3._0._1.impl.ESADMai nContractTermsTypeImpl " entity-name="ESADMainContractTermsType" abstract="false" lazy="false" extends="ESADContractCostType" table="`esadmaincontracttermstype`">
> <meta attribute="eclassName">ESADMainContractTermsType</meta>
> <meta attribute="epackage">urn:customs.ru:ESADCommonAggregateTypes:3.0.1 </meta>
> <key>
> <column name="`esadcontractcosttype_e_id`"/>
> </key>
> <property name="tradeCountryCode" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`tradecountrycode`"/>
> </property>
> <property name="additionalFinancialData" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
> <column not-null="false" unique="false" name="`additionalfinancialdata`" length="250"/>
> </property>
> <many-to-one name="eSADDeliveryTerms" entity-name="DeliveryTermsType" cascade="all" lazy="false" insert="true" update="true" not-null="false">
> <column not-null="false" unique="false" name="`deliverytermstype_esad_id`"/>
> </many-to-one>
> <list name="financialDocuments" lazy="true" casc
Re: [Teneo] Persistence Options [message #606707 is a reply to message #83657] Wed, 16 May 2007 08:34 Go to previous message
Roman Bliznets is currently offline Roman BliznetsFriend
Messages: 75
Registered: July 2009
Member
No Message Body
  • Attachment: model.rar
    (Size: 50.03KB, Downloaded 131 times)
Re: [Teneo] Persistence Options [message #606715 is a reply to message #83673] Thu, 17 May 2007 05:27 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
I tested this and the goodsDescription2, goodsDescription3, goodsDescription4, goodsDescription5
tables are created correctly.
Are you sure it found the persistence xml?
Can you also check if the epackage uri (urn:customs.ru:ESADCommonAggregateTypes:3.0.1) is exactly
the same as the epackage uri defined in the generated java code?

--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Persistence Options [message #606718 is a reply to message #83776] Thu, 17 May 2007 11:25 Go to previous message
Roman Bliznets is currently offline Roman BliznetsFriend
Messages: 75
Registered: July 2009
Member
Martin, Thanks!

I have generated all classes and create project anew, and mistake
disappeared. Soon as possible I read old persistence.xml...

It well work.
Thanks.
Previous Topic:TENEO - need multi-tiered environment solution
Next Topic:Externalizing Policies
Goto Forum:
  


Current Time: Mon Jan 18 08:48:32 GMT 2021

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

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

Back to the top