Home arrow Java arrow Introducing Hibernate
JAVA

Introducing Hibernate


Databases are complex to implement. This is especially true when components of a database based on two different approaches (i.e. object oriented vs. relational) must interact with each other. Object Relational Mapping (ORM) frameworks can act as mediators between the two approaches. Hibernate, the topic of this article, is an ORM framework for Java.

Author Info:
By: A.P.Rajshekhar
Rating: 4 stars4 stars4 stars4 stars4 stars / 77
December 06, 2005
TABLE OF CONTENTS:
  1. · Introducing Hibernate
  2. · Object Relational Mapping: What is it?
  3. · Getting Started With Hibernate
  4. · Hibernate in the Real World

print this article
SEARCH DEVARTICLES

Introducing Hibernate
(Page 1 of 4 )

Reinventing the wheel is the bane of software development. This is true for each and every  component of software. One of the basic and most complex (in terms of design and implementation) component is the database. The complexity increases when the "orientation" of the interacting components differs.

To make a long story short, when a component based on one kind of approach (e.g. object oriented) tries to interact directly with another object having its roots in another kind of approach (e.g. relational), the complexity increases due to the knots and knaves of cross approach communication. This is evident in all the database APIs provided by different languages.

The best example of this is the Java Database Connectivity (JDBC) API. Though JDBC provides an easy method for accessing different databases without much ado, it is basically a low level API providing only a thin layer of abstraction. This is sufficient for small and medium projects, but is not well suited for enterprise level applications. What is required is a Framework that can act as a mediator between both parties (i.e. approaches).

Object Relational Mapping (ORM) frameworks are such mediators. The best example of an ORM framework for Java is Hibernate. In this tutorial I will be introducing the Hibernate framework by discussing the basics of Hibernate. The first section will cover the basic concept of ORM. The second section will focus on getting started with Hibernate, and the third segment will pull all of the details together with a real world example.


blog comments powered by Disqus
JAVA ARTICLES

- Java Too Insecure, Says Microsoft Researcher
- Google Beats Oracle in Java Ruling
- Deploying Multiple Java Applets as One
- Deploying Java Applets
- Understanding Deployment Frameworks
- Database Programming in Java Using JDBC
- Extension Interfaces and SAX
- Entities, Handlers and SAX
- Advanced SAX
- Conversions and Java Print Streams
- Formatters and Java Print Streams
- Java Print Streams
- Wildcards, Arrays, and Generics in Java
- Wildcards and Generic Methods in Java
- Finishing the Project: Java Web Development ...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials