|
|
|
|
Re: EMF ecore and genmodel editors and documentation for them [message #1841602 is a reply to message #1841569] |
Fri, 21 May 2021 15:49 |
Warwick Burrows Messages: 132 Registered: July 2009 Location: Austin, TX |
Senior Member |
|
|
Thanks Eike, this helps a lot! I had started investigating the code and this helps narrow it down. There's one observation that you may be able to confirm for me. Looking at the server code that initializes/creates the tables and the "forceIndexes" mapping strategy property it seems that indexes aren't added to a table that already exists - only when creating new tables. And existing columns aren't updated if the model changes. Is that the case or have I just not found where indexes are added and column definitions updated for existing tables?
And to answer your question: I have only seen indexes for CDO tables, not the tables created for my model objects. I also don't see any constraints like primary keys. However if, as I suspect, table definitions aren't updated once created then these model object tables have been around since CDO 4.1 and I probably didn't set the right EMF ecore properties to have constraints and indexes created back then. The DBAnnotation class may be the key here.
[Updated on: Fri, 21 May 2021 15:54] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.01966 seconds