Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2005

Tip: Looking for answers? Try searching our database.

Hibernate tools

Thread view: 
Steve Sobol - 07 Jul 2005 20:21 GMT
I'm looking into the Hibernate O/R library to potentially cut down on the
time required to develop database-backed applications.

The concepts are simple enough to understand, but setting up all the files
seems a little time-consuming.

Assuming I have a SQL database set up already, are there any tools that will
allow me to generate a schema *and* the relevant class files using the
database structure and a hibernate.cfg.xml? It appears from the Hibernate
docs that the tools provided with Hibernate will only generate a schema.

Signature

JustThe.net - Steve Sobol / sjsobol@JustThe.net / PGP: 0xE3AE35ED
Coming to you from Southern California's High Desert, where the
temperatures are as high as the gas prices! / 888.480.4NET (4638)

"Life's like an hourglass glued to the table"   --Anna Nalick, "Breathe"

Sebastian Scheid - 07 Jul 2005 20:31 GMT
> I'm looking into the Hibernate O/R library to potentially cut down on the
> time required to develop database-backed applications.
[quoted text clipped - 7 lines]
> Hibernate docs that the tools provided with Hibernate will only generate a
> schema.

There is a Hibernate plugin for Middlegen that generates the mappings files
from an exisitin database. And hbm2java generates the Jaca sourcefiles from
the mapping.
Sebastian Scheid - 07 Jul 2005 20:38 GMT
>> I'm looking into the Hibernate O/R library to potentially cut down on the
>> time required to develop database-backed applications.
[quoted text clipped - 11 lines]
> files from an existing database. And hbm2java generates the Java
> sourcefiles from the mapping.

Sorry, didn't have my keyboard under control and sent the post uncomplete.

Here is the Link
http://www.hibernate.org/256.html

And tried it and it works fine.

There are the new Hibernate Tools 3.0 which are still alpha
http://www.hibernate.org/255.html .
These are supposed to do this job, too. I did not try them.

Regards
Sebastian
Steve Sobol - 07 Jul 2005 20:41 GMT
> There is a Hibernate plugin for Middlegen that generates the mappings files
> from an exisitin database. And hbm2java generates the Jaca sourcefiles from
> the mapping.

Bingo! hbm2java is what I wanted; I just couldn't remember the name of the
tool. Thanks :)

Signature

JustThe.net - Steve Sobol / sjsobol@JustThe.net / PGP: 0xE3AE35ED
Coming to you from Southern California's High Desert, where the
temperatures are as high as the gas prices! / 888.480.4NET (4638)

"Life's like an hourglass glued to the table"   --Anna Nalick, "Breathe"

Gerbrand van Dieijen - 09 Jul 2005 18:07 GMT
Steve Sobol schreef:
> I'm looking into the Hibernate O/R library to potentially cut down on
> the time required to develop database-backed applications.
[quoted text clipped - 7 lines]
> Hibernate docs that the tools provided with Hibernate will only generate
> a schema.

I use JDOGenie, a JDO implementation for ti, and I'm quite satisfied
with it.
It's not Hibernate, but it is an O/R mapping. JDO is a Java-standard.
You can use JDOGenie to generate a databaseschema for your database.
Also, when your objects are changed (new attributes), you can use
JDOGenie to generata a update-sql file. This can be very useful for
upgrading.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.