| EMF ecore and genmodel editors and documentation for them [message #1841520] |
Wed, 19 May 2021 18:16  |
Eclipse User |
|
|
|
Is there documentation for the existing sample ecore and genmodel editors that are included with eclipse EMF? For example, I'd like to know what some of the fields in the ecore editor mean. e.g. "unique" and "ID", and also how can I tell which properties control the creation of database tables and how do I use EAnnotations.
Also, are there any recommended alternatives to the sample ecore and genmodel editors that might have documentation or tips included.
|
|
|
|
|
|
| Re: EMF ecore and genmodel editors and documentation for them [message #1841602 is a reply to message #1841569] |
Fri, 21 May 2021 11:49  |
Eclipse User |
|
|
|
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 11:54] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04347 seconds