Mapping tables from an existing database to an object -- is Hibernate suited?

Posted by Bernhard V on Stack Overflow See other posts from Stack Overflow or by Bernhard V
Published on 2010-05-27T11:32:46Z Indexed on 2010/05/27 11:41 UTC
Read the original article Hit count: 194

Hello!

I've got some tables in an existing database and I want to map them to a Java object. Actually it's one table that contains the main information an some other tables that reference to such a table entry with a foreign key.

I don't want to store objects in the database, I only want to read from it. The program should not be allowed to apply any changes to the underlying database.

Currently I read from the database with 5 JDBC sql queries and set the results then on an object.

I'm now looking for a less code intensive way. Another goal is the learning aspect. Is Hibernate suitable for this task, or is there another ORM framework that better fits my requirement?

© Stack Overflow or respective owner

Related posts about java

Related posts about hibernate