Tuesday, July 30, 2013

Features of Hibernate and Hibernate features


1. Light weight ORM Framework Software.
2. Allows us to Database software independent persistence(o-r mapping persistence logic)
3. Supports POJO and POJI model programming.
4. Can be used along with Java, JEE, Java Framework software applications to make them
internally with ORM software.
5. Gives built in JDBC Connection pool also allows to work with third party supplied and
server managed JDBC Connection pool.
6. Gives built in transaction management support and also allow working with server
managed Transaction management.
Note: Hibernate gives built-in middleware service and also allowed to work with third party
or server supplied middleware services.
Note: Middleware services are additional and optional services which can be applied to our
application to make our application running smoothly in all sitchuations.
EX: Transaction Management, Security, JDBC Connection Pooling and e.t.c.,
7. Gives the records of the table directly in the form of Collection Framework data
structures which are serializable objects by default.
8. Gives the Database software independent query language called HQL.
9. Also allows using direct SQL queries to develop persistence logic.
10. Throws only un checked exceptions so Exception Handling while developing Hibernate
persistence logic is optional.
Note: Even though Hibernate uses JDBC and even though JDBC code throws Checked
exceptions the Hibernate software converts them to unchecked exceptions by using
Exception Rethrowing concept.
public void bml()
try
{
------------- source code which may checked exception
-------------
}
Catch(SQLException se)
{
Throw new arithmetic exception();// Exception Rethrowing
}
}
11. Allows us to develop PL/SQL procedures/ functions of Database software.
12. Allows to build object based relationship one to one, one to many and e.t.c.,
13. Gives annotations support in programming as alternate to XML files.
Note: Annotations are Java statements that are alternate for the XML file resources
configuration and other applications
14. Also supports JPA standards of o-r mapping persistence logic development
Note: JPA defines set of rules and guidelines that are required to develop ORM softwares
due to this programmers can work with all these ORM Softwares in a common way.
15. Easy to communicate and apply.
16. Supports two levels catching and buffering.
Note: Buffering in Hibernate based client application reduces the network round trips
between client and server.

No comments:

Post a Comment