Why and Where Hibernate,
November 3, 2008 at 2:54 PM
Why hibernate? 1> Hibernate is simple, its like a plugin where u need to add some Jar file and XML file. You dont really need any extra installation.
2> Its a light weight component.Unlike EJB its not too expensive.(EX- In Entity Beans if u want to insert a query there would be lot of network calls, like looking into JNDI to get home ref and firing create method to get remote ref.)
3>Works in Both Managed and unmanaged environment.(EJB works with only Managed Environment i,e, Application server is required)
4> Provides its own connection pooling.
5> Provides Transaction.
6>Flexible with all the database drivers(Lets say tomorrow if i am changing my databse of the appln. its simple just by making some changes in XML files).
7>Provides Hibernate Query language(HQL).
8> No need to write SQL queries in ur appln.hibernate automatcally generates SQL queries.
8>Supports Inheritence like Object Oriented languages.
9> As a Programmer u can only concentrate on Bussiness Logic.(Persistance logic will be handled by hibernate)
10> Finally its an OpenSource ORM Tool.(IBatis and oracle Top Link, all these are not Open Source)
View All Comments
| View Tutorial