Hibernate

Posted on January 29, 2008. Filed under: Hibernate, Performance Issues, Software Design Concepts | Tags: , , , , , |

Hibernate – It is written in java, an open source project, provides ORM (Object Relational Mapping) solution, technology for persisting data in any kind of application. Powerful object-oriented persistence, hibernate query language, the object oriented concept is similar to java for association, inheritance, polymorphism, composition and collection. It has automatic primary key generation, perists the java objects into database table format using the metadata that defines the object & database mapping.  ORM tools address the CRUD operations on the objects of persistent classes. Web applications due to database traffic will have performance issues. Caching is the best technique to solve the heavy traffic performance problem.

One can achieve lazy loading in hibernate – loads parent objects first and later the child objects, an ORM technique.

Advantages:

- High performance

- Object Relational Mapping ORM solution is better

- Object-Oriented Query language

- One can avoid rewriting queries

- Easy Maintenance and ease to developer to concentrate on business logic rather than maintenance functionality.

Disadvantages:

- Lacks performance related to connection management and transactonal management

Hibernate xml mapping document defines the properties, mapping details

Hibernate XML Mapping Document Example:

Hibernate XML Mapping Document Example

Hibernate Architecture:

The below diagram shows Hibernate using the database and configuration data to provide persistence services /objects to the application.

Hibernate Architecture

There are couple of hibernate plugins (open source available) for Eclipse, Visual Studio etc. 

Make a Comment

Make a Comment: ( None so far )

blockquote and a tags work here.

    About

    Technical Blogs – Java J2EE Architecture Development Process, Design Patterns, Strategic Planning, Performance

    RSS

    Subscribe Via RSS

    • Subscribe with Bloglines
    • Add your feed to Newsburst from CNET News.com
    • Subscribe in Google Reader
    • Add to My Yahoo!
    • Subscribe in NewsGator Online
    • The latest comments to all posts in RSS
    • Subscribe in Rojo

    Meta

Liked it here?
Why not try sites on the blogroll...