Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] How to retrieve all attributes from inheritance tree
[Acceleo] How to retrieve all attributes from inheritance tree [message #1425040] Tue, 16 September 2014 19:47 Go to next message
Mariusz K is currently offline Mariusz KFriend
Messages: 2
Registered: September 2014
Junior Member
Hi all,

I would like to retieve all attributes for 'superClass' and all inherited 'subClasses' from UML using Acceleo.
I want to use it to generate single table with all attributes for 'CREATE TABLE' ddl script for whole inheritance tree.

I have seen below script but I could not find fragment responsible for above:

.../p/acceleo-jee/source/browse/trunk/org.acceleo.module.pim.uml21.gen.java.dao.migrated/src/org/acceleo/module/pim/uml21/gen/sql/sqlserver2005/sqlconstraints.mtl?r=36

All hints are welcome!
Mariusz

Re: [Acceleo] How to retrieve all attributes from inheritance tree [message #1425368 is a reply to message #1425040] Wed, 17 September 2014 07:55 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

OCL 2.3 introduced a closure iteration so something like

myClass->closure(superClass)

might be what you are looking for. Eclipse OCL introduced it long before
that so it should be available even in very old versions of Acceleo.

Regards

Ed Willink


On 16/09/2014 20:47, Mariusz K wrote:
> Hi all,
>
> I would like to retieve all attributes for 'superClass' and all
> inherited 'subClasses' from UML using Acceleo.
> I want to use it to generate single table with all attributes for
> 'CREATE TABLE' ddl script for whole inheritance tree.
>
> I have seen below script but I could not find fragment responsible for
> above:
>
> ../p/acceleo-jee/source/browse/trunk/org.acceleo.module.pim.uml21.gen.java.dao.migrated/src/org/acceleo/module/pim/uml21/gen/sql/sqlserver2005/sqlconstraints.mtl?r=36
>
>
> All hints are welcome!
> Mariusz
>
>
Re: [Acceleo] How to retrieve all attributes from inheritance tree [message #1435388 is a reply to message #1425368] Wed, 01 October 2014 12:29 Go to previous message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

While this is not exactly what you need, have a look here and there.

Regards,

Stephane Begaudeau, Obeo
Previous Topic:Eclipse OCL version of Acceleo
Next Topic:[Acceleo] main.emtl not found after deploying plugins
Goto Forum:
  


Current Time: Fri Apr 26 11:49:34 GMT 2024

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

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

Back to the top