Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [ACCELEO] How to make Acceleo to use my model?
icon5.gif  [ACCELEO] How to make Acceleo to use my model? [message #669806] Wed, 11 May 2011 15:15 Go to next message
Harri T. is currently offline Harri T.Friend
Messages: 22
Registered: May 2011
Junior Member

I'm trying to follow the entity generation screncast at tinyurl.com/5rjnzzc (acceleo.org) but the problem is that java source files for my own sample UML classes are not generated. Instead only the following files are generated:

src/main/java/fr/obeo/sample/dao/SampleDaoFactory.java
src/main/resources/dao.properties
src/main/resources/hibernate.cfg.xml
src/main/resources/sample-contraints.sql
src/main/resources/sample-ddl.sql
src/test/java/fr/obeo/sample/dao/test/AllSampleDaoTests.java

Any idea? I'm using Topcased 4.3.0 and Acceleo 2.8.0 in Eclipse Helios SR2.

Harri
Re: [ACCELEO] How to make Acceleo to use my model? [message #669810 is a reply to message #669806] Wed, 11 May 2011 15:30 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

This forum is used for Acceleo 3.x, the forum dedicated to the old version of Acceleo (before the entrance of Acceleo in the Eclipse Foundation) can be found here

Stephane Begaudeau, Obeo
--
Twitter: @sbegaudeau
Acceleo wiki: http://wiki.eclipse.org/Acceleo
Blogs: http://stephanebegaudeau.tumblr.com & http://sbegaudeau.tumblr.com
Re: [ACCELEO] How to make Acceleo to use my model? [message #669813 is a reply to message #669810] Wed, 11 May 2011 15:40 Go to previous messageGo to next message
Harri T. is currently offline Harri T.Friend
Messages: 22
Registered: May 2011
Junior Member

Stephane Begaudeau wrote on Wed, 11 May 2011 11:30
This forum is used for Acceleo 3.x


Thanks for answering! Does Acceleo 3 provide sample templates for generating Java classes from UML model?

[Updated on: Wed, 11 May 2011 18:39]

Report message to a moderator

Re: [ACCELEO] How to make Acceleo to use my model? [message #669945 is a reply to message #669813] Thu, 12 May 2011 07:24 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

Yes, you can find an example of UML to Java generation in Acceleo: File -> New -> Example -> Acceleo Model to Text -> UML to Java.
Or you can also find an UML to Java generator for Acceleo 3.1 (which will be released in 5/6 weeks) that I'm working on, here: https://github.com/ObeoNetwork/UML-Java-Generation
(this generator is for Acceleo 3.1 only because of some documentation block that are only available in 3.1, if you remove them, you can use it with Acceleo 3.0 while waiting for Acceleo 3.1 next month).

Stephane Begaudeau, Obeo
--
Twitter: @sbegaudeau
Acceleo wiki: http://wiki.eclipse.org/Acceleo
Blogs: http://stephanebegaudeau.tumblr.com & http://sbegaudeau.tumblr.com

[Updated on: Thu, 12 May 2011 07:25]

Report message to a moderator

Re: [ACCELEO] How to make Acceleo to use my model? [message #670295 is a reply to message #669945] Fri, 13 May 2011 12:21 Go to previous messageGo to next message
Harri T. is currently offline Harri T.Friend
Messages: 22
Registered: May 2011
Junior Member

Stephane Begaudeau wrote on Thu, 12 May 2011 03:24
Yes, you can find an example of UML to Java generation in Acceleo: File -> New -> Example -> Acceleo Model to Text -> UML to Java.


Thanks for helping! I found it and I'm going to add support for Hibernate annotations. Before that I should learn how to define stereotype for Hibernate entities. Have you got examples about it?

Stephane Begaudeau wrote on Thu, 12 May 2011 03:24
Or you can also find an UML to Java generator for Acceleo 3.1 (which will be released in 5/6 weeks) that I'm working on


Great! Is 3.1 going to be released for Eclipse Helios or just for Indigo?

Harri
Re: [ACCELEO] How to make Acceleo to use my model? [message #670328 is a reply to message #670295] Fri, 13 May 2011 14:28 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

Quote:
Before that I should learn how to define stereotype for Hibernate entities. Have you got examples about it?


I don't have any examples of this, sorry.

Quote:
Great! Is 3.1 going to be released for Eclipse Helios or just for Indigo?


3.1 will be released with indigo but you can install it in eclipse 3.6 helios if you want.

Stephane Begaudeau, Obeo
--
Twitter: @sbegaudeau
Acceleo wiki: http://wiki.eclipse.org/Acceleo
Blogs: http://stephanebegaudeau.tumblr.com & http://sbegaudeau.tumblr.com

Re: [ACCELEO] How to make Acceleo to use my model? [message #699349 is a reply to message #669806] Thu, 21 July 2011 12:10 Go to previous message
Daniel is currently offline DanielFriend
Messages: 2
Registered: July 2011
Junior Member
Hi Harri,
I have the same problem as you, how did you solve yours? although I am doing the exact same thing as in the screencasts.

Regards.
Previous Topic:[Acceleo] EEnum access from a module
Next Topic:[Acceleo] Does the Acceleo Language support constants?
Goto Forum:
  


Current Time: Fri Apr 19 13:09:38 GMT 2024

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

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

Back to the top