Skip to main content



      Home
Home » Modeling » Epsilon » Resolve reference between models with ETL
Resolve reference between models with ETL [message #1857463] Wed, 08 February 2023 16:55 Go to next message
Eclipse UserFriend
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] Wed, 08 February 2023 20:34 Go to previous messageGo to next message
Eclipse UserFriend
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 17:05 Go to previous message
Eclipse UserFriend
Hello,
Thanks you very much, it's perfect!

Théo Giraudet

[Updated on: Wed, 15 February 2023 17:06] by Moderator

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


Current Time: Sat Jul 12 21:48:17 EDT 2025

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

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

Back to the top