Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to ORM Hibernate Hibernate vs JDBC. May 12, 2011 INTRODUCTION TO ORM ORM is a programming technique for converting data between relational.

Similar presentations


Presentation on theme: "Introduction to ORM Hibernate Hibernate vs JDBC. May 12, 2011 INTRODUCTION TO ORM ORM is a programming technique for converting data between relational."— Presentation transcript:

1 Introduction to ORM Hibernate Hibernate vs JDBC

2 May 12, 2011 INTRODUCTION TO ORM ORM is a programming technique for converting data between relational databases and Object oriented programming languages such as java,c#   An open source

3 May 12, 2011 JAVA ORM Frame works: There are several Persistent frameworks and ORM options in java. A persistent framework is an ORM service that stores and retrieves objects into a relational database Different Frame works: Castor TopLink Spring DAO Hibernate

4 May 12, 2011 Hibernate : Hibernate maps Java classes to database tables and from Java data types to SQL data types Hibernate sits between traditional Java objects and database server to handle all the work In persisting those objects based on the appropriate O/R mechanisms and patterns.

5 May 12, 2011 HIBERNATE VS JDBC Hibernate is flexible and powerful ORM solution to map Java classes to database tables. Provides a powerful query language (HQL) It also selects an effective way to perform a database manipulation task for an application With JDBC, developer has to write code to map an object model's data representation to a relational data model. JDBC supports only native Structured Query Language (SQL). Developer has to find out the efficient way to access database, i.e. to select effective query from a number of queries to perform same task.

6 May 12, 2011 Returns result to application in form of Java objects. With JDBC, it is developer’s responsibility to handle JDBC result set and convert it to Java objects through code to use this persistent data in application. HIBERNATE VS JDBC

7 Thank You


Download ppt "Introduction to ORM Hibernate Hibernate vs JDBC. May 12, 2011 INTRODUCTION TO ORM ORM is a programming technique for converting data between relational."

Similar presentations


Ads by Google