Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for issues discovered when serializing dynamic EMF model #58

Closed
wants to merge 93 commits into from

Conversation

ideas-into-software
Copy link
Contributor

Fix for issue with custom java.util.Map$Entry, used when creating EMap

Original implementation of custom java.util.Map$Entry was based on official EMF documentation ( see "EMF/FAQ: How do I create a Map in EMF?" https://wiki.eclipse.org/EMF/FAQ#How_do_I_create_a_Map_in_EMF.3F ), which mentioned that either EAttribute or EReference can be used.

However, using EReference resulted in errors when opening such serialized Ecore with 'Ecore Model Editor'; see attached screenshot (Screenshot from 2024-05-23 04-22-40.png).

As it turns out, only using EAttribute is allowed with custom java.util.Map$Entry, used when creating EMap.

Fix for issue with org.gecko.emf.converter used as package name in integration tests

Both integration tests, created as part of work on DTO Converters, used org.gecko.emf.converter as package name in generated dynamic EMF package (org.gecko.emf.converter.tests.DTOToEPackageConverterTest.PACKAGE_NAME, org.gecko.emf.converter.tests.DTOToEObjectConverterTest.PACKAGE_NAME).

This resulted in The name 'org.gecko.emf.converter' is not well formed error when opening such serialized Ecore with 'Ecore Model Editor'

Fix for issue with structural features referencing external eType by URI

This issue is pending fix - please see #57 for more details.


Screenshot from 2024-05-23 04-22-40

gg-dim and others added 30 commits July 6, 2022 11:15
- set context attribute of ROOT_ELEMENT is set

Signed-off-by: Mark Hoffmann <m.hoffmann@data-in-motion.biz>
- added root_element attribute
- added tests

Signed-off-by: Mark Hoffmann <m.hoffmann@data-in-motion.biz>
- added root_element attribute
- added tests

Signed-off-by: Mark Hoffmann <m.hoffmann@data-in-motion.biz>
Signed-off-by: Juergen Albert <j.albert@data-in-motion.biz>
Signed-off-by: Juergen Albert <j.albert@data-in-motion.biz>
Signed-off-by: Ilenia Salvadori <i.salvadori@data-in-motion.biz>
Signed-off-by: Ilenia Salvadori <i.salvadori@data-in-motion.biz>
Signed-off-by: Ilenia Salvadori <i.salvadori@data-in-motion.biz>
Signed-off-by: Ilenia Salvadori <i.salvadori@data-in-motion.biz>
Signed-off-by: Ilenia Salvadori <i.salvadori@data-in-motion.biz>
Signed-off-by: Ilenia Salvadori <i.salvadori@data-in-motion.biz>
- changed osgi whiteboard api to 2.0
- refactored naming
- package renaming
- new major version

Signed-off-by: Mark Hoffmann <m.hoffmann@data-in-motion.biz>
Signed-off-by: Mark Hoffmann <m.hoffmann@data-in-motion.biz>
Signed-off-by: Mark Hoffmann <m.hoffmann@data-in-motion.biz>
The switch from javax to jakarta forced a lot of changes and thus requires a major bump
Signed-off-by: Michael H. Siemaszko <m.siemaszko@datainmotion.com>
Signed-off-by: Juergen Albert <j.albert@data-in-motion.biz>
Signed-off-by: Juergen Albert <j.albert@data-in-motion.biz>
 - Specialized EMF ODS resource

 - References traceable via IDs and (optionally) links

 - Additional export options

 - Additional metadata

 - Documentation

 - Various fixes & improvements


Signed-off-by: Michael H. Siemaszko <m.siemaszko@datainmotion.com>
Signed-off-by: Michael H. Siemaszko <m.siemaszko@datainmotion.com>
Signed-off-by: Michael H. Siemaszko <m.siemaszko@datainmotion.com>
 - Added support for links after having added this new feature to SODS
library

 - Added support for mapping tables

 - Various fixes & improvements

Signed-off-by: Michael H. Siemaszko <m.siemaszko@datainmotion.com>
emf-ods-exporter-sods

Signed-off-by: Michael H. Siemaszko <m.siemaszko@datainmotion.com>
Signed-off-by: Michael H. Siemaszko <m.siemaszko@datainmotion.com>
maho7791 and others added 28 commits November 2, 2023 19:07
- extracted annotation to config property class
- modified MBR and MBW

Signed-off-by: Mark Hoffmann <m.hoffmann@data-in-motion.biz>
…-exporters

Signed-off-by: Michael H. Siemaszko <m.siemaszko@datainmotion.com>
…rters

Gecko EMF Exporters (CSV ZIP, CSV flat, XLSX, ODS) - new & updated
Signed-off-by: Michael H. Siemaszko <m.siemaszko@datainmotion.com>
 - Versions bump

 - Fix for error macro related build problem

Signed-off-by: Michael H. Siemaszko <m.siemaszko@datainmotion.com>
 - Snapshot release

 - Fixes for resolution errors

Signed-off-by: Michael H. Siemaszko <m.siemaszko@datainmotion.com>
 - Fix for Metaspace OutOfMemoryError

Signed-off-by: Michael H. Siemaszko <m.siemaszko@datainmotion.com>
 - Fix for deprecated 'geckoEMFUtil' library

 - Fix for build issues

Signed-off-by: Michael H. Siemaszko <m.siemaszko@datainmotion.com>
Signed-off-by: Michael H. Siemaszko <m.siemaszko@datainmotion.com>
Merge branch 'snapshot' into jakarta
Signed-off-by: Juergen Albert <j.albertta-in-motion.biz>
Signed-off-by: Juergen Albert <j.albertta-in-motion.biz>
Signed-off-by: Juergen Albert <j.albertta-in-motion.biz>
Signed-off-by: Juergen Albert <j.albertta-in-motion.biz>
Signed-off-by: Michael H. Siemaszko <m.siemaszko@datainmotion.com>
Signed-off-by: Michael H. Siemaszko <m.siemaszko@datainmotion.com>
…ecko.emf.utils into snapshot

Signed-off-by: Michael H. Siemaszko <mhs@into.software>
 - DTO to EPackge converter ( #51 )

 - Converter Impl for DTO to EObject ( #52 ) - skeleton

Signed-off-by: Michael H. Siemaszko <mhs@into.software>
 - Converter Impl for DTO to EObject ( #52 )

Signed-off-by: Michael H. Siemaszko <mhs@into.software>
- Externalize custom EDataTypes
 
 - Dynamically register EMF built-in and custom EDataTypes
 
 - Explicitly register EPackage
 
 - Minor fixes and improvements


Signed-off-by: Michael H. Siemaszko <mhs@into.software>
 - Refactored to use standard OSGi converter with custom
'ConverterFunction' and 'TypeRule'

 - Removed refactored OSGi converter implementation from local
repository

 - Relaxed requirement of accepting only classes which extend
'org.osgi.dto.DTO'

 - Minor fixes and improvements

Signed-off-by: Michael H. Siemaszko <mhs@into.software>
 - Fix for issue with custom `java.util.Map$Entry`, used when creating
`EMap`

 - Fix for issue with `org.gecko.emf.converter` used as package name in
integration tests

Signed-off-by: Michael H. Siemaszko <mhs@into.software>
@ideas-into-software ideas-into-software deleted the dynamic-EMF-serialization-issues branch May 26, 2024 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants