Easiest question first. You can use your sql queries that you already have written in hibernate.
Loaded question second. It depends on how much time you have to implement hibernate for your needs. Understanding how to replicate relationships that exist in your database in hibernate can be confusing. and time consuming.
If you desire query results in the form of easily navigable java objects, then yes, hibernate is very good at that.
There are too many other benefits of hibernate to list here.
There are also a lot of reasons why using hibernate would NOT be a good choice too.
alot of it depends on what your database looks like and what functionality you desire from a db layer such as hibernate.
another option would be IBATIS sqlmaps, if you want to look that up
_________________ Chris
If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.
|