Hibernate(H8) In Action
Upcoming SlideShare
Loading in...5
×
 

Hibernate(H8) In Action

on

  • 3,127 views

What is Hibernate?

What is Hibernate?

Statistics

Views

Total Views
3,127
Views on SlideShare
3,108
Embed Views
19

Actions

Likes
1
Downloads
274
Comments
0

5 Embeds 19

http://priyank-genius.blogspot.com 10
http://www.slideshare.net 4
http://amiconesas.blogspot.com.es 3
http://amiconesas.blogspot.com 1
http://www.slideee.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Hibernate(H8) In Action Hibernate(H8) In Action Presentation Transcript

  • HIBERNATE(H8) IN ACTION Priyank Kapadia
  • WHAT ARE WE TALKING ABOUT
    • Persistence
    • Hibernate
    • ORM(Object Relation Mapping)
      • Everything is objects and not a ResultSet or a RecordSet .
  • PERSISTENCE UNVEILED
    • The storage of an object on a disk or other permanent storage device as opposed to transient data
    • Persisting data = Durable
      • Integrity maintained
    • Persistence generally implies use of a database
      • Even file system can be used, needs to handled well
  • PERSISTENCE CLASS
  • O/R MAPPING
    • Programming technique for converting data between incompatible type systems in databases and OOP languages.
    • “ Database of Objects” which can be used by the developers using a programming language
    • Commercial packages as well Open Source Packages available that perform OR (Object Relation) mapping
  • ORM VISUALIZED
  • JAVA OBJECTS VS. DATABASE Java Object int _id; String _desciption; String getDescription () int getId() void setDescription(String) void setId(int) SQL Table id primary key, Description varchar2(50) Magic Happens Here (O/R Mapping – i.e. Hibernate)
  • HIBERNATE ??
    • Hibernate is an object-relational mapping (ORM) solution for the Java language.
    • It is free, open source software that is distributed under the GNU Lesser General Public License.
    • It provides an easy to use framework for mapping an object-oriented domain model to a relational database
    • Maintained by Jboss Inc.
  • HIBERNATE SIMPLIFIED
    • H8 is between the DB & code
    • Maps Persistent objects to tables
  • SO WHAT? FEATURES?
    • Hibernate not only takes care of the mapping from Java classes to database tables (and from Java data types to SQL data types),
    • Provides data query and retrieval facilities and can significantly reduce development time otherwise spent with manual data handling in SQL and JDBC.
    • Hibernate generates the SQL calls and relieves the developer from manual result set handling and object conversion, keeping the application portable to all SQL databases.
  • ADVANTAGES
    • Industry recognizes these as why we should use hibernate
      • Support for Query Language
      • Database Dependent Code
      • Maintenance Cost
      • Optimize Performance
      • Automatic Versioning and Time Stamping
      • Open-Source, Zero-Cost Product License
      • Scalable
  • SERIES -2
    • Coming Shortly.
    • Dive into H8 code
    • What’s the fuss about these XML files? Configuration??