Skip to main content



      Home
Home » Modeling » EMF » [CDO] Idiomatic way to install dynamic MM (i.e. Ecore file)(How to define schemata on the server)
[CDO] Idiomatic way to install dynamic MM (i.e. Ecore file) [message #1856490] Tue, 13 December 2022 04:14 Go to next message
Eclipse UserFriend
We have a dynamic application and are unlikely to ever generate Java bindings for our metamodels. Instead, we would like to use the functionality of the server to upload existing schemata. I have seen the feature in the UI that performs this step by uploading an ecore file resource.

I am wondering what the idiomatic programmatic way would be to transfer an ePackage as ecore or other notation to the server.

I am further interested how I can list and access these packages programmatically and remotely.

Is there any documentation? Are there any tests for this case?
Re: [CDO] Idiomatic way to install dynamic MM (i.e. Ecore file) [message #1857401 is a reply to message #1856490] Sat, 04 February 2023 05:07 Go to previous message
Eclipse UserFriend
Hi Jörn,

There are several test cases that demonstrate how to use dynamic packages. You can find them by searching for
.ecore"

The most obvious one is org.eclipse.emf.cdo.tests.DymamicEcoreTest:

      CDOSession session = openSession();
      session.getPackageRegistry().putEPackage(ecore);
      CDOTransaction transaction = session.openTransaction();
Previous Topic:[CDO] DevOps installation
Next Topic:[CDO] Database mapping: explicitly specify nullable columns
Goto Forum:
  


Current Time: Sun Apr 27 16:49:27 EDT 2025

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

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

Back to the top