|
![]() |
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
The only thing I don't like about Hibernate is performace
DAO requirs a lot of coding.
Merrill
Consultant, Sima Solutions
Anything in particular? In my experience, most ORM's perform pretty much the same. I've not noticed anything about Hibernate that worries me.
Then I would recommend a code generation tool. Many modelling tools (such as Together, or the Hibernate tools plugin for eclipse) will automatically generate DAO based on your model or mapping files.
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
I'd like to clarify one thing about EJB 3.0: It's a specification that requires a persistence provider. The main ones I'm aware of are TopLink and Hibernate. So, if you decide to go with EJB 3.0, it's likely you'll want to select Hibernate as its underlying persistence provider.
Another option you may not be aware of: Java Persistence API (JPA) can be used independently of EJB 3.0. You could simply use JPA within your web container or GUI client without using EJBs.
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Peridically we do performance testing and tuning, and the result is not so good. I searched the web for Hibernate perforamce benchmarks and tunning, and I found that large number of people complains about the performace. Nonetheless, our system adminstrator and DBA are not keen on using Hibernate.
Originally posted by Hanna Habashy:
For the small application that I used Hibernate for, I didn't not notice any performance issues. Currently, we have a software vendor who is developing a large scale application. The vendor is using Hibernate 3.1. Peridically we do performance testing and tuning, and the result is not so good. I searched the web for Hibernate perforamce benchmarks and tunning, and I found that large number of people complains about the performace. Nonetheless, our system adminstrator and DBA are not keen on using Hibernate. They worry about performance issues as well.
There is a lot to Hibernate and I find them incredible. If you went the JDBC route your costs will be higher because you will have to write more code and also will be tougher to maintain.
Originally posted by vu lee:
This is quite true, but writting more code is not neccesarily bad. Sometimes, I refer to know (1) what I'm doing (2) how I get from A to B (3) which path I will take from A to B.
Wouldn't the DBA's job is to figure out the is the best/optimal SQL to use for a given db server?
Sometimes, I avoid using generic algorithm to solve specific problem.
I do use Hibernate, but only for certain applications
[ February 16, 2007: Message edited by: vu lee ]
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Originally posted by Hanna Habashy:
Mark:
Thank you for sharing your knowledge.
Our DBA/Architect wants to implements all the SQL query in stored prodedure.
Is is a good idea to use Hibernate with almost 100% stored prodedures?
Thanks
You firghten me terribly. I would like to go home now. Here, take this tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
|