﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>CapableObjects Forums / ECO / General discussions  / ECOModelRoot removed? / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>CapableObjects Forums</description><link>http://www.capableobjects.com/apps/InstantForum414/</link><webMaster>forums@capableobjects.com</webMaster><lastBuildDate>Wed, 08 Feb 2012 22:38:30 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: ECOModelRoot removed?</title><link>http://www.capableobjects.com/apps/InstantForum414/Topic4869-4-1.aspx</link><description>Yes, if you use tablemapping "Own" for Class1, any reference to this class can have its type easily determined with a lookup in table Class1. If you childmap Class1, ECO will have to look in the tables for the childclasses until it finds the right table (slow).</description><pubDate>Tue, 13 Apr 2010 09:02:17 GMT</pubDate><dc:creator>Jonas Hogstrom</dc:creator></item><item><title>RE: ECOModelRoot removed?</title><link>http://www.capableobjects.com/apps/InstantForum414/Topic4869-4-1.aspx</link><description>It seems that it's difficult,I can't know if I can realize it. Can you have told me more ?&lt;br&gt;&lt;br&gt;Another question ,&lt;br&gt;modal like this:&lt;br&gt;--------------&lt;br&gt;Many classes inherit from class1,for example  class111,class112 are inherited from class1;&lt;br&gt;if class1 have association with classb;like this class1(0..1)------(0..*)classb, so classb will have one field class1id which is the id of those classes inherited from class1;&lt;br&gt;--------&lt;br&gt; I  want to know.when I have one classb ,so I know the value classb.class1id, If I set the class1 tablemapping=own,  the table class1 have all data(id and type), this table can help eco  to fastly locate the ID  to get the exact object.</description><pubDate>Wed, 31 Mar 2010 15:47:11 GMT</pubDate><dc:creator>wangwei.njcn</dc:creator></item><item><title>RE: ECOModelRoot removed?</title><link>http://www.capableobjects.com/apps/InstantForum414/Topic4869-4-1.aspx</link><description>If the rootclass (EcoModelRoot) has TableMapping=Own, it will have a table, but since it doesn't have any attributes, the only thing the table will contain will be the ID and Type column. &lt;br&gt;&lt;br&gt;You can childmap the rootclass by setting a property on a DefaultORMappingBuilder component and hook it up as the NewMappingProvider and RuntimeMappingProvider for you PersistenceMapperSqlServer on your PMP.&lt;br&gt;&lt;br&gt;Yes, I know there are an awful lot of classes that contain the word Mapping or Mapper...</description><pubDate>Wed, 31 Mar 2010 15:29:20 GMT</pubDate><dc:creator>Jonas Hogstrom</dc:creator></item><item><title>RE: ECOModelRoot removed?</title><link>http://www.capableobjects.com/apps/InstantForum414/Topic4869-4-1.aspx</link><description>oh,I know it，there are another compromised method to resovle this?&lt;br&gt;set tablemapping as own ,can help this?&lt;br&gt;-------------&lt;br&gt;At the same time,I find , if there  ECOModelRoot is exist,in this table there ara all id and types for all classes. why store these datas in this table?&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Wed, 31 Mar 2010 12:05:47 GMT</pubDate><dc:creator>wangwei.njcn</dc:creator></item><item><title>RE: ECOModelRoot removed?</title><link>http://www.capableobjects.com/apps/InstantForum414/Topic4869-4-1.aspx</link><description>There is no easy way to know this. If you have a model like this, ECO will have to try to locate the ID in the child-tables to determine the exact type of the object. This is obviously very slow if you have many child-tables.&lt;br&gt;&lt;br&gt;It would in theory be possible to add the type-column to the table that stores the id of the related object, but this would require some modifications of the persistencemapper...</description><pubDate>Wed, 31 Mar 2010 11:54:25 GMT</pubDate><dc:creator>Jonas Hogstrom</dc:creator></item><item><title>RE: ECOModelRoot removed?</title><link>http://www.capableobjects.com/apps/InstantForum414/Topic4869-4-1.aspx</link><description>There is no this table ,If give one ID,How to know what type is this id  fastly? look through all datas of all tables?&lt;br&gt;----------------------&lt;br&gt;for example:&lt;br&gt;many classes inherit from class1 ,and set the tablemapping=children of class1;&lt;br&gt;if class1 have association with classb;like this class1(0..1)------(0..*)classb, so classb will have one field class1id which is the id of those classes inherited from class1;How to know those id is which class?&lt;br&gt;</description><pubDate>Wed, 31 Mar 2010 09:32:08 GMT</pubDate><dc:creator>wangwei.njcn</dc:creator></item><item><title>RE: ECOModelRoot removed?</title><link>http://www.capableobjects.com/apps/InstantForum414/Topic4869-4-1.aspx</link><description>ECOModelRoot is an implicit class that is added to the model if (and only if) the model doesn't already contain a root class from which all other classes descend. So, a model with only one class (Class1) will not have ECOModelRoot. If you add a new class (Class2) ECO will add ECOModelRoot and let the two classes descend from this class in the runtime model. If you add an inheritance between Class1 and Class2, ECOModelRoot will dissappear again since Class1 will be the root class of the model (or Class2 depending on which inherits from which ofcourse). Setting the property "DefaultSuperClass" in your model will have a similar effect since all classes will inherit from this class unless they inherit from somewhere else.</description><pubDate>Mon, 15 Feb 2010 09:14:48 GMT</pubDate><dc:creator>Jonas Hogstrom</dc:creator></item><item><title>RE: ECOModelRoot removed?</title><link>http://www.capableobjects.com/apps/InstantForum414/Topic4869-4-1.aspx</link><description>Your UML model has evolved however some OCL expressions (contained in handles) not.&lt;br&gt;So check each OCL expression  and then update it if it is wrong.&lt;br&gt;&lt;br&gt;</description><pubDate>Sun, 14 Feb 2010 14:48:10 GMT</pubDate><dc:creator>Ys</dc:creator></item><item><title>ECOModelRoot removed?</title><link>http://www.capableobjects.com/apps/InstantForum414/Topic4869-4-1.aspx</link><description>Hi&lt;br&gt;&lt;br&gt;I recently generated code in a project after upgrading to the latest version.&lt;br&gt;&lt;br&gt;I am getting "ECOModelRoot is not a type name" in an ocl query now, has it been removed?&lt;br&gt;&lt;br&gt;John</description><pubDate>Sun, 14 Feb 2010 13:46:59 GMT</pubDate><dc:creator>John Evans</dc:creator></item></channel></rss>
