Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » first stab at using domain modelling tools
first stab at using domain modelling tools [message #493080] Fri, 23 October 2009 03:02 Go to next message
Tom H is currently offline Tom HFriend
Messages: 139
Registered: July 2009
Senior Member
Hi all,

For my fresh new project I have been working with a team doing lots of modelling up front, and this offers the opportunity to use a code and JPA annotation generation tool from the start.

My initial look at what tools were available led me to stuff like rational and omondo which were quite expensive. However there appear to be many other implementations of tools to do the sort of thing that I am after, which is to design my domain/data model and generate the Java classes and JPA annotations from them.

So I was hoping to get some recommendations on where to start, I am currently looking at the class diagram editors, and they seem to work pretty well.

However I would now like to generate the hibernate and DAO code off the digrams and I was wondering which tool I should use for that

Thanks,

Tom
Re: first stab at using domain modelling tools [message #493085 is a reply to message #493080] Fri, 23 October 2009 06:00 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33217
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030907080708030705040900
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Tom,

Comments below.


Tom H wrote:
> Hi all,
>
> For my fresh new project I have been working with a team doing lots of
> modelling up front, and this offers the opportunity to use a code and
> JPA annotation generation tool from the start.
>
> My initial look at what tools were available led me to stuff like
> rational and omondo which were quite expensive.
Perhaps worth the price though? Their models were built using EMF...
> However there appear to be many other implementations of tools to do
> the sort of thing that I am after, which is to design my domain/data
> model and generate the Java classes and JPA annotations from them.
Yes, there's free technology available for that as well.
>
> So I was hoping to get some recommendations on where to start, I am
> currently looking at the class diagram editors, and they seem to work
> pretty well.
You mean the Ecore Tools editor? It's really very nice.
>
> However I would now like to generate the hibernate and DAO code off
> the digrams and I was wondering which tool I should use for that
You should have a close look at Teneo.

http://www.eclipse.org/modeling/emf/?project=teneo

Martin has been working with the EclipseLink guys to provide integration
with that.
>
> Thanks,
>
> Tom

--------------030907080708030705040900
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Tom,<br>
<br>
Comments below.<br>
<br>
<br>
Tom H wrote:
<blockquote cite="mid:hbr6cg$q35$1@build.eclipse.org" type="cite">Hi
all,
<br>
<br>
For my fresh new project I have been working with a team doing lots of
modelling up front, and this offers the opportunity to use a code and
JPA annotation generation tool from the start.
<br>
<br>
My initial look at what tools were available led me to stuff like
rational and omondo which were quite expensive. </blockquote>
Perhaps worth the price though?  Their models were built using EMF...<br>
<blockquote cite="mid:hbr6cg$q35$1@build.eclipse.org" type="cite">However
there appear to be many other implementations of tools to do the sort
of thing that I am after, which is to design my domain/data model and
generate the Java classes and JPA annotations from them.
<br>
</blockquote>
Yes, there's free technology available for that as well.<br>
<blockquote cite="mid:hbr6cg$q35$1@build.eclipse.org" type="cite"><br>
So I was hoping to get some recommendations on where to start, I am
currently looking at the class diagram editors, and they seem to work
pretty well.
<br>
</blockquote>
You mean the Ecore Tools editor?  It's really very nice.<br>
<blockquote cite="mid:hbr6cg$q35$1@build.eclipse.org" type="cite"><br>
However I would now like to generate the hibernate and DAO code off the
digrams and I was wondering which tool I should use for that
<br>
</blockquote>
You should have a close look at Teneo.  <br>
<blockquote><a href="http://www.eclipse.org/modeling/emf/?project=teneo">http://www.eclipse.org/modeling/emf/?project=teneo</a><br>
</blockquote>
Martin has been working with the EclipseLink guys to provide
integration with that.<br>
<blockquote cite="mid:hbr6cg$q35$1@build.eclipse.org" type="cite"><br>
Thanks,
<br>
<br>
Tom
<br>
</blockquote>
</body>
</html>

--------------030907080708030705040900--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: first stab at using domain modelling tools [message #493097 is a reply to message #493080] Fri, 23 October 2009 06:46 Go to previous messageGo to next message
Cedric Brun is currently offline Cedric BrunFriend
Messages: 431
Registered: July 2009
Senior Member
Hi Tom,

If you're looking for a full JEE stack generation, the Acceleo.org project
is providing tooling using stereotyped UML and generating DAO, DTO, and
Struts from that.

http://www.acceleo.org/pages/modules-repository/

The project is now moving to the Eclipse servers, but took that chance to
re-implement the core technologies from scratch, the JEE module has not been
ported to this new implementation so far :

http://www.eclipse.org/modeling/m2t/?project=acceleo

Cédric

Tom H wrote:

> Hi all,
>
> For my fresh new project I have been working with a team doing lots of
> modelling up front, and this offers the opportunity to use a code and JPA
> annotation generation tool from the start.
>
> My initial look at what tools were available led me to stuff like rational
> and omondo which were quite expensive. However there appear to be many
> other implementations of tools to do the sort of thing that I am after,
> which is to design my domain/data model and generate the Java classes and
> JPA annotations from them.
>
> So I was hoping to get some recommendations on where to start, I am
> currently looking at the class diagram editors, and they seem to work
> pretty well.
>
> However I would now like to generate the hibernate and DAO code off the
> digrams and I was wondering which tool I should use for that
>
> Thanks,
>
> Tom


http://cedric.brun.io news and articles on eclipse and eclipse modeling.
Re: first stab at using domain modelling tools [message #493256 is a reply to message #493085] Fri, 23 October 2009 23:49 Go to previous messageGo to next message
Tom H is currently offline Tom HFriend
Messages: 139
Registered: July 2009
Senior Member
[quote title=Ed Merks wrote on Fri, 23 October 2009 02:00]
> So I was hoping to get some recommendations on where to start, I am
> currently looking at the class diagram editors, and they seem to work
> pretty well.
You mean the Ecore Tools editor? It's really very nice.
>

I've managed to get a domain model saved using both the UMLDiagramEditor from the UML2 project - which produces UML files and the Ecore diagram editor from the org.eclipse.gmf.ecore.editor plugin which produces ecore files.

I actually preferred the UML editor from the org.eclipse.uml2.diagram.clazz plugin!

I guess I am a little confused at this stage, does the gmf not use UML?

The teneo options only appear for ecore files, are there any options for code generation from the UML files?

Thanks,

Tom


Re: first stab at using domain modelling tools [message #493257 is a reply to message #493097] Fri, 23 October 2009 23:54 Go to previous messageGo to next message
Tom H is currently offline Tom HFriend
Messages: 139
Registered: July 2009
Senior Member
Cédric Brun wrote on Fri, 23 October 2009 02:46
Hi Tom,

If you're looking for a full JEE stack generation, the Acceleo.org project
is providing tooling using stereotyped UML and generating DAO, DTO, and
Struts from that.



I'm actually only looking for a simple proof of concept to start, just the data/domain objects and data access objects and some persistence tool (like JPA hibernate or whatever, at this stage I am just researching whats possible)

I've installed (well I appear to have 2 versions of Acceleo installed, with 2 perspectives, so I guess I have done something weird) Acceleo and am working through the docs.

Are the Acceleo and JET stuff similar?, I noticed they both provide a sort of template based code generation

Cheers,

Tom
Re: first stab at using domain modelling tools [message #493278 is a reply to message #493256] Sat, 24 October 2009 08:06 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33217
Registered: July 2009
Senior Member
Tom,

The Ecore Tools project provides a more polished Ecore editor and the
basic example on in GMF.

It's possible to import an Ecore model from UML and then take advantage
of all the technology based on Ecore, including the code generator of
course. The steps are the same as in the basic tutorials, except you
choose UML in the wizard instead of XML Schema or Annotated Java.


Tom H wrote:
> [quote title=Ed Merks wrote on Fri, 23 October 2009 02:00]
>> So I was hoping to get some recommendations on where to start, I am
>> currently looking at the class diagram editors, and they seem to work
>> pretty well.
> You mean the Ecore Tools editor? It's really very nice.
>>
>
> I've managed to get a domain model saved using both the
> UMLDiagramEditor from the UML2 project - which produces UML files and
> the Ecore diagram editor from the org.eclipse.gmf.ecore.editor plugin
> which produces ecore files.
> I actually preferred the UML editor from the
> org.eclipse.uml2.diagram.clazz plugin!
> I guess I am a little confused at this stage, does the gmf not use UML?
>
> The teneo options only appear for ecore files, are there any options
> for code generation from the UML files?
>
> Thanks,
>
> Tom
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:xsi:type in EReference as Featurekind "element" wrong
Next Topic:Trouble using profile - newbie
Goto Forum:
  


Current Time: Mon Sep 23 21:28:52 GMT 2024

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

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

Back to the top