-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: uml diagramming tool with support for hibernate annotations
PostPosted: Wed Nov 16, 2005 12:24 pm 
Newbie

Joined: Wed Nov 16, 2005 11:52 am
Posts: 6
Hi,

I am currently using a top down approach for development with the following steps.

1. Design the model using UML diagrams

2. a. Manually create the POJOs.
b. Insert the hibernate annotations
c. Generate the schemal using the schema generation tool.


Step 1 and 2 are disconnected and I need to manually ensure that they are in sync. I would like to maintain a single artifact (as compared to UML + pojo with annotations) and I would like to automate the process of POJO generation with annotations, followed by schema generation.

I guess I need a tool which creates UML diagrams in which I can incorporate the annotations so that each time the POJOs are generated they are annotated.

q1>Is there any way I could achieve this? I did have a look at androMDA, but at this point I do not know how I could use it to achieve my goal.

q2>I believe this feature would be useful in development. Are they any plans to introduce such a feature as part of Hibernate Tools?

Thank you,

Rishi


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 16, 2005 12:50 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
any tool that can create a hbm.xml from UML should be usable in this context since we can generate annotations from them.

and afaik andromeda generates hbm.xml

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 16, 2005 11:19 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
You want an xmi2java (with hibernate markup).
AndroMDA could have a cartridge to do this for you. If not it could be built for it.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 17, 2005 12:21 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
xmi2java = Andromeda Hibernate cartride + hbmj2ava

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: suggest steps for development
PostPosted: Thu Nov 17, 2005 6:28 pm 
Newbie

Joined: Wed Nov 16, 2005 11:52 am
Posts: 6
What would be the recommended steps for development given that I do not have access to the required cartiridge for xmi2java with hibernate markup?

thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 17, 2005 6:48 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
doiwnload andromeda and learn how to use their hibernate integration to generate hbm.xml and then use hbm2java from hibernatetools to generate your annotated classes.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 17, 2005 9:24 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
If you get this pipeline working (and should be fine) get back to us. It would be interesting to see how it works out. It is kinda cool how everything is plugin together now.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.