Discussion Locked

Relieve the tedium of JDBC with ORM

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Use an Object Relational Mapping API to write JDBC code:

The Feb. 27, Java TechMail discusses using an Object Relational Mapping API to write JDBC code. In your Java application development, have you had to write database/JDBC code? Would ORM tools and API's help with your software development?

4 replies

by jlaskowski

I've mostly been using JDBC direct calls to a database. The problem with changing the habit is with the answer to the question: which one suits my requirements ? Until now, I couldn't answer it. Is there a list of available features of the popular open source ORM tools - OJB, Castor, Hibernate, etc. ?

by thedew

I have used Jakarta's Torque (still part of the Turbine project but soon becoming its own) and it's awesome.

by matthewadams

There was no mention of JDO (and I mean Sun JDO, not Castor JDO) as a persistence solution. It is a vendor-neutral specification for the transparent persistence of Java objects to data stores, including relational and nonrelational.

Jakarta's OJB is currently adding JDO support to their product in version 2.0. I have not yet heard of plans for Hibernate to support JDO. There are several commercial and open source implementations available out there. See jdocentral.com for commercial stuff, and projects on SourceForge like TJDO.

Castor JDO has never been Sun JDO compliant, BTW.

--Matthew

by reassembler

I should've mentioned JDO. I don't use it, and it this point don't recommend it and am not a big fan of it, but since it's part of Java, I should have at least told folks it was out there. Good idea for another tip actually. thanks

This discussion is closed to new replies.