Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Any tutorials on generating java domain classes?
[Acceleo] Any tutorials on generating java domain classes? [message #1453357] Sun, 26 October 2014 17:30 Go to next message
Eclipse UserFriend
Hi

I am researching Sirius and looking at how to generate code from Sirius diagrams.

There is very little info on the Sirius website on how to do this.

I assume this can be done using Acceleo, however there are very limited tutorials on using Acceleo - and the ones I have found are Android, PHP, C - but none on Java, which I find quite strange.

Is Acceleo the recommend tool for java code generation from Sirius?
And are there any recent, up-to-date, tutorials on how to do generate java domain classes using Acceleo?

Thanks
Re: [Acceleo] Any tutorials on generating java domain classes? [message #1453390 is a reply to message #1453357] Sun, 26 October 2014 18:48 Go to previous messageGo to next message
Eclipse UserFriend
Hi

You don't usually need a Java generator since EMF does it all for you.

Regards

Ed Willink

On 26/10/2014 22:30, Anton Hughes wrote:
> Hi
>
> I am researching Sirius and looking at how to generate code from Sirius
> diagrams.
> There is very little info on the Sirius website on how to do this.
>
> I assume this can be done using Acceleo, however there are very limited
> tutorials on using Acceleo - and the ones I have found are Android, PHP,
> C - but none on Java, which I find quite strange.
> Is Acceleo the recommend tool for java code generation from Sirius?
> And are there any recent, up-to-date, tutorials on how to do generate
> java domain classes using Acceleo?
>
> Thanks
Re: [Acceleo] Any tutorials on generating java domain classes? [message #1455703 is a reply to message #1453390] Wed, 29 October 2014 13:11 Go to previous messageGo to next message
Eclipse UserFriend
Ok thats great.

However, as I would like to generate Bean Validation code, and be able to customize the generated java, I imagine that I would need to use - or could at least benefit from - Acceleo.

Or, is fine grained control of the generated java possible with EMF?
Re: [Acceleo] Any tutorials on generating java domain classes? [message #1455728 is a reply to message #1455703] Wed, 29 October 2014 13:49 Go to previous messageGo to next message
Eclipse UserFriend
Hi

EMF generation has a lot of flexibility. Not sure if it does what you want.

What I forgot in mt previous response was to mention that all the JET
templates underlying the standard EMF generation haave been traslated to
Acceleo, so they might give you a starter.

But to be honest, generation of dedicated structural Java code is so
easy I would expect to write the Acceleo code quicker than I could find
something to reuse let alone tailor what I found for reuse.

Regards

Ed Willink


On 29/10/2014 18:11, Anton Hughes wrote:
> Ok thats great.
> However, as I would like to generate Bean Validation code, and be able
> to customize the generated java, I imagine that I would need to use - or
> could at least benefit from - Acceleo.
>
> Or, is fine grained control of the generated java possible with EMF?
Re: [Acceleo] Any tutorials on generating java domain classes? [message #1455750 is a reply to message #1455728] Wed, 29 October 2014 14:17 Go to previous message
Eclipse UserFriend
Hi Ed

Quote:

But to be honest, generation of dedicated structural Java code is so
easy I would expect to write the Acceleo code quicker than I could find
something to reuse let alone tailor what I found for reuse.


This is great to hear! Really positive! And I this is what I want to do - I just need some pointers or examples to help me get started.
Previous Topic:[Acceleo] Testing for superclass and Interfaces
Next Topic:Using stereotypes in EGL
Goto Forum:
  


Current Time: Sat Jul 05 06:06:26 EDT 2025

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

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

Back to the top