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.
![]() |
and suggestions to improve this page to Roedy Green : | ||
| Canadian Mind Products | |||
| mindprod.com IP:[65.110.21.43] | |||
| Your face IP:[38.103.63.16] | The information on this page is for non-military use only. | ||
| You are visitor number 9,216. | Military use includes use by defence contractors. | ||
| You can get a fresh copy of this page from: | or possibly from your local J: drive (Java virtual drive/Mindprod website mirror) | ||
| http://mindprod.com/jgloss/or.html | J:\mindprod\jgloss\or.html | ||