Objects by Design Forums Here you can view your subscribed threads, work with private messages and edit your profile and preferences Registration is free! Calendar Find other members Frequently Asked Questions Search Home  
Objects by Design Forums : Powered by vBulletin version 2.3.5 Objects by Design Forums > Main Forums > Model Driven Architecture (MDA) > AndroMDA 2.1 released
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
SZ
Administrator

Registered: Apr 2001
Location: New York
Posts: 492

AndroMDA 2.1 released

Matthias Bohlen, lead architect of AndroMDA, has announced the release of version 2.1 of this open-source MDA tool.

One of the highlights of this release is support for Hibernate 2, the leading open-source object/relational mapping tool.

The way AndroMDA works is that it can import a UML model saved as an XMI file, and then generate Java classes as well as other artifacts for EJB and Hibernate. What is unique about AndroMDA's approach is its very savvy use of XDoclet tags in the code generation. This saves AndroMDA from having to reinvent the wheel since XDoclet support for both EJB and Hibernate is extensive.

I was a little disappointed to find out that Hibernate support is provided through the use of EJB session beans, though. This is done to leverage things like transactions that are part of EJB. However, one of the nice things about Hibernate and the way in which a lot of software is moving is that it can be used in 'lightweight containers'. For instance, if you have a hosting company which only supports JSP and servlets (fairly common), it is easier to program a model with plain-old Java objects (POJO's) and use Hibernate to persist the model. This can be done with just a servlet engine as the container.

The good news is that the MDA cartridges for AndroMDA are open source, written in the Velocity scripting language, and can be adapted. There is already somebody who has a DAO implementation of a Hibernate MDA cartridge for AndoMDA who may be willing to contribute this back to the AndroMDA site.

For the download of AndroMDA go to the sourceforge.net site.

For more information on MDA, see the OMG MDA site.

Report this post to a moderator | IP: Logged

Old Post 11-27-2003 09:29 PM
SZ is offline Click Here to See the Profile for SZ Click here to Send SZ a Private Message Visit SZ's homepage! Find more posts by SZ Add SZ to your buddy list Edit/Delete Message Reply w/Quote
mattes3
Junior Member

Registered: Dec 2003
Location:
Posts: 1

POJOs in AndroMDA's Hibernate2 cartridge

Hi all,

some good news for the fans of light weight objects:

Herve Tchepannou, the xpetstore guy, has submitted a patch for the AndroMDA Hibernate2 cartridge that makes the use of light weight session facades possible. Unfortunately, this patch does not address transaction management yet, so we'll wait until such a template becomes available.

Any volunteers?

Cheers...
Matthias Bohlen

Last edited by mattes3 on 12-05-2003 at 08:14 AM

Report this post to a moderator | IP: Logged

Old Post 12-05-2003 06:18 AM
mattes3 is offline Click Here to See the Profile for mattes3 Click here to Send mattes3 a Private Message Visit mattes3's homepage! Find more posts by mattes3 Add mattes3 to your buddy list Edit/Delete Message Reply w/Quote
SZ
Administrator

Registered: Apr 2001
Location: New York
Posts: 492

mind of an architect

The patch submitted by Herve Tchepannou can be found here.

You can see the mind of an architect at work while reading this AndroMDA mailing list message by Matthias Bohlen regarding the aforesaid AndroMDA patch for Hibernate.

What Matthias is saying is quite interesting because he is genuinely trying to solve the problem proposed at the beginning of this thread, viz. How do you generate Hibernate persistence from plain-old Java objects while preserving the semantic of session and transaction? This is onto something significant because in essence it says you can bypass a lot of the EJB 'goop' and recover the benefits of POJO's (testing, inheritance, lightweight, no data transfer objects, etc.).

Note that this is the essence of MDA because it lets you refine your implementation as your containers get better (read: more lightweight) without constantly recoding at the lowest level. Instead, your cartridges get refined.

Also, check out this interview with Matthias Bohlen

Report this post to a moderator | IP: Logged

Old Post 12-10-2003 04:57 AM
SZ is offline Click Here to See the Profile for SZ Click here to Send SZ a Private Message Visit SZ's homepage! Find more posts by SZ Add SZ to your buddy list Edit/Delete Message Reply w/Quote
SZ
Administrator

Registered: Apr 2001
Location: New York
Posts: 492

The answer to POJO's with transactional semantics is to use the Spring J2EE framework. The latest milestone release, Spring 1.0 M4, now supports this.

Report this post to a moderator | IP: Logged

Old Post 01-13-2004 11:50 AM
SZ is offline Click Here to See the Profile for SZ Click here to Send SZ a Private Message Visit SZ's homepage! Find more posts by SZ Add SZ to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 11:16 PM. Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 

< Contact Us - Objects by Design >

Powered by: vBulletin Version 2.3.5
Copyright ©2000 - 2018, Jelsoft Enterprises Limited.
Copyright 1999-2005, Objects by Design, Inc.