Thread:
 From .java to .hbm 
 neuquino   29 Jan 2007, 12:44 
 Re: From .java to .hbm 
 emmie   05 Feb 2007, 05:50 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: emmie (05 Feb 2007, 05:50) Replies: 0, Views: 17184
Subject: Re: From .java to .hbm
POST QUESTIONS ON THE FORUM! COMMENTS HERE SHOULD ADD VALUE TO THE 
PAGE!On 29 Jan 2007 12:44, neuquino wrote:

>I know that there is a way to get .hbm files from .java files. Using
the
>class xdoclet.modules.hibernate.HibernateDocletTask. Can't middlegen
do
>that? I know this class is from xdoclet, but I would like to use only
>one tool for everything...


There are two approaches to software engineering: top down and 
button up.

XDoclet focuses on the top down approach: from .java files it 
generates .hbm.xml mapping files and from these, it is posible to
generate database using hbm2ddl tool.

Middlegen focuses on the button up approach: from database it 
generates .hbm.xml mappins files, and from these, it is posible to 
generate .java files using hbm2java tool (only for hibernate 2.x).

Conclusion: these tools (XDoclet and Middlegen) have diferente 
porpuses. Therefore, you can choose one depending on what you 
want to do.


PS: I'm "neuquino" too, I give you my email address in order to keep in
touch: emiliano.pereyra (at) hotmail (dot) com
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]