Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 09:14 Go to next message
Jörn Guy Süß is currently offline Jörn Guy SüßFriend
Messages: 320
Registered: July 2009
Location: Anstead, Brisbane, Queens...
Senior Member

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 10:07 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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: Thu Apr 25 04:05:06 GMT 2024

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

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

Back to the top