Java Glossary : Object-Relational Bridge

CMP home Java glossary home Menu no menu Last updated 2004-06-30 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : O words : Object-Relational Bridge.

Object-Relational Bridge
There are quite a number of tools designed to let you bridge the gap between PODs (Persistent Object Databases) and SQL. They are often called OR tools.

In most cases code generators take the database schema (con.getMetaData()) and create corresponding java classes, for example one data class and one manager class per table.

Some OR tools (TopLink, Cocobase, etc) create both java classes and database schema from single xml master file.

Chris Smith says that iBATIS involves a lot more SQL work than Hibernate and leaves you to solve more of your own problems, but it requires a lot less conceptual understanding. iBATIS basically seems to be about mapping a ResultSet to an object, and nothing else. Hibernate is more concerned with the hard problems: caching and connection pooling; representing relationships between entities in a very flexible and customizable way, etc. As a result, iBATIS appears to be mostly about avoiding the effort of writing repetitive glue code from JDBC, while Hibernate is about abstracting away from JDBC and treating data according to the object model instead.


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 1212.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/or.html J:\mindprod\jgloss\or.html