Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [SOLVED][CDO] - Migrating from 4.6 to 4.10 - IllegalStateException type mapping EFeatureMapEntry
[SOLVED][CDO] - Migrating from 4.6 to 4.10 - IllegalStateException type mapping EFeatureMapEntry [message #1835980] Thu, 17 December 2020 16:23 Go to next message
peugene Mising name is currently offline peugene Mising nameFriend
Messages: 58
Registered: January 2011
Member
In my EMF model i have an EAttribute with type EFeatureMapEntry

In 4.6, the mapping is correct.
CDO created a db table as is :
Quote:

CDO_SOURCE BIGINT
CDO_VERSION INTEGER
CDO_IDX INTEGER
CDO_FEATURE BIGINT
CDO_VALUE_SMALLINT SMALLINT
CDO_VALUE_BIGINT BIGINT
CDO_VALUE_LONGVARCHAR VARCHAR
CDO_VALUE_VARCHAR VARCHAR
CDO_VALUE_CLOB CLOB
CDO_VALUE_BOOLEAN BOOLEAN
CDO_VALUE_BLOB BLOB
CDO_VALUE_DATE DATE
CDO_VALUE_VARBINARY BLOB
CDO_VALUE_CHAR CHAR
CDO_VALUE_FLOAT REAL
CDO_VALUE_TIMESTAMP TIMESTAMP
CDO_VALUE_INTEGER INTEGER
CDO_VALUE_TIME TIME
CDO_VALUE_DOUBLE DOUBLE


In CDO 4.10, the EAttribute is passed in the method TypeMappingRegistry#createTypeMapping().

In this method an exception occured :
Quote:

java.lang.IllegalStateException: No type mapping factory found for DocumentRoot.mixed: ecore.EFeatureMapEntry --> DBType.VARCHAR


In version 4.6, the same EAttribute is nerver passed to TypeMappingRegistry#createTypeMapping().

Thanks for reply,
--
Philippe

[Updated on: Fri, 18 December 2020 09:19]

Report message to a moderator

Re: [CDO] - Migrating from 4.6 to 4.10 - IllegalStateException on type mapping for EFeatureMapEntry [message #1836008 is a reply to message #1835980] Fri, 18 December 2020 08:09 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6556
Registered: July 2009
Senior Member
Feature maps were never properly supported in CDO. Even though the database mappings may have been created, there evolved more and more places in the code where feature maps were not considered/handled. After years of deprecation all remaining code for feature map handling was removed this May: https://bugs.eclipse.org/bugs/show_bug.cgi?id=562011

Re: [CDO] - Migrating from 4.6 to 4.10 - IllegalStateException on type mapping for EFeatureMapEntry [message #1836012 is a reply to message #1836008] Fri, 18 December 2020 08:48 Go to previous messageGo to next message
peugene Mising name is currently offline peugene Mising nameFriend
Messages: 58
Registered: January 2011
Member
Ok, thanks Eike. We will consider an alternative to MapEntry
Re: [CDO] - Migrating from 4.6 to 4.10 - IllegalStateException on type mapping for EFeatureMapEntry [message #1836013 is a reply to message #1836012] Fri, 18 December 2020 08:58 Go to previous messageGo to next message
peugene Mising name is currently offline peugene Mising nameFriend
Messages: 58
Registered: January 2011
Member

It has been a while since we had to modify this part of the model (rest of an old model), the migration to CDO 4.10 will be an opportunity to refactoring
Re: [CDO] - Migrating from 4.6 to 4.10 - IllegalStateException on type mapping for EFeatureMapEntry [message #1836016 is a reply to message #1836013] Fri, 18 December 2020 09:48 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6556
Registered: July 2009
Senior Member
I'm glad to hear that. Good luck ;-)

Previous Topic:[CDO] - Migrating from 4.6 to 4.10 - DB Exception on server restart
Next Topic:EMF - genmodel generate test code option not available
Goto Forum:
  


Current Time: Fri Apr 16 22:45:11 GMT 2021

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

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

Back to the top