Mapping tables from an existing database to an object -- is Hibernate suited?
- by Bernhard V
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?