Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 21:30 Go to next message
Anton Hughes is currently offline Anton HughesFriend
Messages: 62
Registered: January 2013
Member
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 22:48 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5579
Registered: July 2009
Senior Member
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 17:11 Go to previous messageGo to next message
Anton Hughes is currently offline Anton HughesFriend
Messages: 62
Registered: January 2013
Member
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 17:49 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5579
Registered: July 2009
Senior Member
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 18:17 Go to previous message
Anton Hughes is currently offline Anton HughesFriend
Messages: 62
Registered: January 2013
Member
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] UML profile not accessible
Next Topic:'Undefined argument' exception using Acceleo query from Sirius
Goto Forum:
  


Current Time: Thu Jan 18 13:33:59 GMT 2018

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

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