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 |