Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » [Teneo] Can't seem to access objects in store
| | | | | | |
Re: [Teneo] Can't seem to access objects in store [message #72889 is a reply to message #72872] |
Mon, 26 February 2007 22:18 |
Mark Geib Messages: 432 Registered: July 2009 |
Senior Member |
|
|
Martin,
Here are all the entries for 'facility' in both the ecore and mappingXML
file.
Facility is the object I am trying to load/get from the Echostar object.
Echostar is the root object of the store.
############################## mappingXML file entries for 'facility'
<class entity-name="NamedEquipmentList" abstract="false" lazy="false"
discriminator-value="NamedEquipmentList" table="`namedequipmentlist`">
<meta attribute="eclassName">NamedEquipmentList</meta>
<meta attribute="epackage">http://srd</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>
<discriminator column="`dtype`" type="string"/>
<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="namedEquipment" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`namedequipment_namedequipmentlist_id`" not-null="false"
unique="false"/>
</key>
<list-index column="`namedequipmentlist_namedequipment_idx`"/>
<one-to-many entity-name="NamedEquipment"/>
</list>
<one-to-one name="facility" entity-name="Facility"
cascade="merge,persist,save-update,lock,refresh"
property-ref="namedEquipmentList" lazy="false"/>
</class>
<class entity-name="Echostar" abstract="false" lazy="false"
discriminator-value="Echostar" table="`echostar`">
<meta attribute="eclassName">Echostar</meta>
<meta attribute="epackage">http://srd</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>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" column="e_version"
access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
<meta attribute="syntheticVersion">true</meta>
</version>
<one-to-one name="contactList" entity-name="ContactList" cascade="all"
property-ref="echostar" lazy="false"/>
<many-to-one name="enumAttrList" entity-name="EnumAttrList"
cascade="all" lazy="false" insert="true" update="true" unique="true"/>
<list name="facilities" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`facility_echostar_id`" not-null="false" unique="false"/>
</key>
<list-index column="`echostar_facilities_idx`"/>
<one-to-many entity-name="Facility"/>
</list>
</class>
<class entity-name="AbstractServiceGroup" abstract="false" lazy="false"
discriminator-value="AbstractServiceGroup" table="`abstractservicegroup`">
<meta attribute="eclassName">AbstractServiceGroup</meta>
<meta attribute="epackage">http://srd</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>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" column="e_version"
access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
<meta attribute="syntheticVersion">true</meta>
</version>
<many-to-one name="facility" entity-name="Facility"
cascade="merge,persist,save-update,lock,refresh" lazy="false"
insert="false" update="false" not-null="false">
<column not-null="false" unique="false"
name="`abstractservicegroup_facility_id`"/>
</many-to-one>
</class>
<class entity-name="Facility" abstract="false" lazy="false"
discriminator-value="Facility" table="`facility`">
<meta attribute="eclassName">Facility</meta>
<meta attribute="epackage">http://srd</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>
<discriminator column="`dtype`" type="string"/>
<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="description" lazy="false" insert="true" update="true"
not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`description`"/>
</property>
<property name="name" lazy="false" insert="true" update="true"
not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`name`"/>
</property>
<many-to-one name="echostar" entity-name="Echostar"
cascade="merge,persist,save-update,lock,refresh" lazy="false"
insert="false" update="false" not-null="false">
<column not-null="false" unique="false" name="`facility_echostar_id`"/>
</many-to-one>
<many-to-one name="namedEquipmentList" entity-name="NamedEquipmentList"
cascade="all" lazy="false" insert="true" update="true" unique="true"/>
<list name="groups" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`abstractservicegroup_facility_id`" not-null="false"
unique="false"/>
</key>
<list-index column="`facility_groups_idx`"/>
<one-to-many entity-name="AbstractServiceGroup"/>
</list>
</class>
############################## ecore file entries for 'facility'
<eClassifiers xsi:type="ecore:EClass" name="NamedEquipmentList">
<eStructuralFeatures xsi:type="ecore:EReference" name="namedEquipment"
upperBound="-1"
eType="#//NamedEquipment" containment="true"
eOpposite="#//NamedEquipment/namedEquipmentList"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="facility"
lowerBound="1"
eType="#//Facility" eOpposite="#//Facility/namedEquipmentList"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Echostar">
<eStructuralFeatures xsi:type="ecore:EReference" name="contactList"
eType="#//ContactList"
containment="true" eOpposite="#//ContactList/echostar"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="enumAttrList"
lowerBound="1"
eType="#//EnumAttrList" containment="true"
eOpposite="#//EnumAttrList/echostar"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="facilities"
upperBound="-1"
eType="#//Facility" containment="true"
eOpposite="#//Facility/echostar"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Facility">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="description"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="echostar"
lowerBound="1"
eType="#//Echostar" eOpposite="#//Echostar/facilities"/>
<eStructuralFeatures xsi:type="ecore:EReference"
name="namedEquipmentList" lowerBound="1"
eType="#//NamedEquipmentList" containment="true"
eOpposite="#//NamedEquipmentList/facility"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="groups"
upperBound="-1"
eType="#//AbstractServiceGroup" containment="true"
eOpposite="#//AbstractServiceGroup/facility"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="AbstractServiceGroup">
<eStructuralFeatures xsi:type="ecore:EReference" name="facility"
lowerBound="1"
eType="#//Facility" eOpposite="#//Facility/groups"/>
</eClassifiers>
|
|
| | | | | | | | | |
Re: [Teneo] Can't seem to access objects in store [message #602954 is a reply to message #72872] |
Mon, 26 February 2007 22:18 |
Mark Geib Messages: 432 Registered: July 2009 |
Senior Member |
|
|
Martin,
Here are all the entries for 'facility' in both the ecore and mappingXML
file.
Facility is the object I am trying to load/get from the Echostar object.
Echostar is the root object of the store.
############################## mappingXML file entries for 'facility'
<class entity-name="NamedEquipmentList" abstract="false" lazy="false"
discriminator-value="NamedEquipmentList" table="`namedequipmentlist`">
<meta attribute="eclassName">NamedEquipmentList</meta>
<meta attribute="epackage">http://srd</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>
<discriminator column="`dtype`" type="string"/>
<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="namedEquipment" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`namedequipment_namedequipmentlist_id`" not-null="false"
unique="false"/>
</key>
<list-index column="`namedequipmentlist_namedequipment_idx`"/>
<one-to-many entity-name="NamedEquipment"/>
</list>
<one-to-one name="facility" entity-name="Facility"
cascade="merge,persist,save-update,lock,refresh"
property-ref="namedEquipmentList" lazy="false"/>
</class>
<class entity-name="Echostar" abstract="false" lazy="false"
discriminator-value="Echostar" table="`echostar`">
<meta attribute="eclassName">Echostar</meta>
<meta attribute="epackage">http://srd</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>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" column="e_version"
access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
<meta attribute="syntheticVersion">true</meta>
</version>
<one-to-one name="contactList" entity-name="ContactList" cascade="all"
property-ref="echostar" lazy="false"/>
<many-to-one name="enumAttrList" entity-name="EnumAttrList"
cascade="all" lazy="false" insert="true" update="true" unique="true"/>
<list name="facilities" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`facility_echostar_id`" not-null="false" unique="false"/>
</key>
<list-index column="`echostar_facilities_idx`"/>
<one-to-many entity-name="Facility"/>
</list>
</class>
<class entity-name="AbstractServiceGroup" abstract="false" lazy="false"
discriminator-value="AbstractServiceGroup" table="`abstractservicegroup`">
<meta attribute="eclassName">AbstractServiceGroup</meta>
<meta attribute="epackage">http://srd</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>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" column="e_version"
access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
<meta attribute="syntheticVersion">true</meta>
</version>
<many-to-one name="facility" entity-name="Facility"
cascade="merge,persist,save-update,lock,refresh" lazy="false"
insert="false" update="false" not-null="false">
<column not-null="false" unique="false"
name="`abstractservicegroup_facility_id`"/>
</many-to-one>
</class>
<class entity-name="Facility" abstract="false" lazy="false"
discriminator-value="Facility" table="`facility`">
<meta attribute="eclassName">Facility</meta>
<meta attribute="epackage">http://srd</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>
<discriminator column="`dtype`" type="string"/>
<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="description" lazy="false" insert="true" update="true"
not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`description`"/>
</property>
<property name="name" lazy="false" insert="true" update="true"
not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`name`"/>
</property>
<many-to-one name="echostar" entity-name="Echostar"
cascade="merge,persist,save-update,lock,refresh" lazy="false"
insert="false" update="false" not-null="false">
<column not-null="false" unique="false" name="`facility_echostar_id`"/>
</many-to-one>
<many-to-one name="namedEquipmentList" entity-name="NamedEquipmentList"
cascade="all" lazy="false" insert="true" update="true" unique="true"/>
<list name="groups" lazy="true" cascade="all,delete-orphan">
<key update="true">
<column name="`abstractservicegroup_facility_id`" not-null="false"
unique="false"/>
</key>
<list-index column="`facility_groups_idx`"/>
<one-to-many entity-name="AbstractServiceGroup"/>
</list>
</class>
############################## ecore file entries for 'facility'
<eClassifiers xsi:type="ecore:EClass" name="NamedEquipmentList">
<eStructuralFeatures xsi:type="ecore:EReference" name="namedEquipment"
upperBound="-1"
eType="#//NamedEquipment" containment="true"
eOpposite="#//NamedEquipment/namedEquipmentList"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="facility"
lowerBound="1"
eType="#//Facility" eOpposite="#//Facility/namedEquipmentList"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Echostar">
<eStructuralFeatures xsi:type="ecore:EReference" name="contactList"
eType="#//ContactList"
containment="true" eOpposite="#//ContactList/echostar"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="enumAttrList"
lowerBound="1"
eType="#//EnumAttrList" containment="true"
eOpposite="#//EnumAttrList/echostar"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="facilities"
upperBound="-1"
eType="#//Facility" containment="true"
eOpposite="#//Facility/echostar"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Facility">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="description"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="echostar"
lowerBound="1"
eType="#//Echostar" eOpposite="#//Echostar/facilities"/>
<eStructuralFeatures xsi:type="ecore:EReference"
name="namedEquipmentList" lowerBound="1"
eType="#//NamedEquipmentList" containment="true"
eOpposite="#//NamedEquipmentList/facility"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="groups"
upperBound="-1"
eType="#//AbstractServiceGroup" containment="true"
eOpposite="#//AbstractServiceGroup/facility"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="AbstractServiceGroup">
<eStructuralFeatures xsi:type="ecore:EReference" name="facility"
lowerBound="1"
eType="#//Facility" eOpposite="#//Facility/groups"/>
</eClassifiers>
|
|
| | | |
Goto Forum:
Current Time: Fri Apr 26 19:15:39 GMT 2024
Powered by FUDForum. Page generated in 0.04438 seconds
|