[CDO] - Migrating from 4.6 to 4.10 - All tables are not created [message #1835914] |
Wed, 16 December 2020 10:42 |
Philippe EUGENE Messages: 58 Registered: January 2011 |
Member |
|
|
Hi,
I'm migrating from CDO 4.6 to 4.10.
I'm using an embedded CDO server whith H2.
When the CDO server start all tables are not created in the DB.
With the same code in 4.6 and 4.10.
CDO 4.6 : over 300 tables are created.
CDO 4.10 : only 30 tables are created.
In 4.6 : with initialPackages set
In 4.10 : same behavior with or without initialPackages set?
Thanks for reply,
--
Philippe
[Updated on: Wed, 16 December 2020 10:42] Report message to a moderator
|
|
|
|
|
Re: [CDO] - Migrating from 4.6 to 4.10 - All tables are not created [message #1835929 is a reply to message #1835923] |
Wed, 16 December 2020 16:13 |
Philippe EUGENE Messages: 58 Registered: January 2011 |
Member |
|
|
Thanks Eike.
If i set the property eagerTableCreation to true. CDO create all table but only for one package unit.
Now , i'm not initialized initialPackage when i start the CDO server.
Then in CDO_PACKAGE_UNITS i have only 4 record :
- three record about CDO
- one record for my model.
Only table of this nsURI are created at startup.
I need all tables created at startup. But i can't initialize all the nsURI in initialPackage.
In the MappingStrategy, when the class mapping is done, all the Eclass are known.
I see the constructor of AbstractHorizontalClassMapping that used the EAGER_TABLE_CREATION property but i don't see why all tables for mapped classes are not created.
[Updated on: Wed, 16 December 2020 16:14] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03500 seconds