Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Resolve reference between models with ETL
Resolve reference between models with ETL [message #1857463] Wed, 08 February 2023 21:55 Go to next message
Théo Giraudet is currently offline Théo GiraudetFriend
Messages: 9
Registered: January 2021
Junior Member
Hello,

I have two meta-models A and B:
@GenModel(
    bundleManifest="false",
    modelDirectory="src/main/java-gen",
    complianceLevel="17"
)

package fr.theogiraudet.test.a

class A {
    String name
    String refName
}


@GenModel(
    bundleManifest="false",
    modelDirectory="src/main/java-gen",
    complianceLevel="17"
)

package fr.theogiraudet.test.b

class B {
    String name
    refers B reference
}


I want to transform a list of A models to a list of B models with reference resolving (refName must be transform to a reference to a B model whose the name is the value of refName).
I found in the documentation the built-in operation "equivalent" but I suppose this one works to resolve a reference to an element within a same model.
My metamodels doesn't have a kind of root with all models within so is it possible to type a rule to a list of specific type of my model A (and B) without modify my metamodels? If no, there is a way to resolve my references between my models?

Thanks!

Théo Giraudet
Re: Resolve reference between models with ETL [message #1857465 is a reply to message #1857463] Thu, 09 February 2023 01:34 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Théo,

Is this what you are trying to achieve?

https://www.eclipse.org/epsilon/playground/?d10ec958

Thanks,
Dimitris
Re: Resolve reference between models with ETL [message #1857582 is a reply to message #1857465] Wed, 15 February 2023 22:05 Go to previous message
Théo Giraudet is currently offline Théo GiraudetFriend
Messages: 9
Registered: January 2021
Junior Member
Hello,
Thanks you very much, it's perfect!

Théo Giraudet

[Updated on: Wed, 15 February 2023 22:06]

Report message to a moderator

Previous Topic:Construct models programmatically but manipulate them with Epsilon
Next Topic:Accessing Enum values compliant with iModel
Goto Forum:
  


Current Time: Tue Apr 23 06:59:44 GMT 2024

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

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

Back to the top