1 / 7

Hibernate

Hibernate. Introduction. ORM goal: Take advantage of the things SQL databases do well, without leaving the Java language of objects and classes. ORM real goal: Do less work and have a happy DBA.

nerys
Download Presentation

Hibernate

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Hibernate

  2. Introduction ORM goal: Take advantage of the things SQL databases do well, without leaving the Java language of objects and classes. ORM real goal: Do less work and have a happy DBA. Hibernate is an open-source ORM toolkit for the Java language, providing a framework for mapping an object-oriented domain model to a traditional relational database.

  3. Hibernate Architecture

  4. XML XML (Extensible Markup Language) is a human readable way of describing structured data. XML is made up of tags enclosing text: <dataset> <record> <name>David</name> <age>47</age> </record></dataset> Mapping Java classes to database table is accomplished through the configuration of an XML file.

  5. SQL SQL (Structured Query Language) is a standard language for accessing and manipulating relational databases. SQL queries allow the user to specify a description of the desired result set: SELECT title, price FROM Book WHERE price > 100.00 ORDER BY title SQL is designed for the retrieval and management of data in database and database schema creation and modification.

  6. Hibernate query options • Hibernate Query Language (HQL) • “minimal” object-oriented dialect of ANSI SQL • Criteria Queries (QBC) • extensible framework for query objects • includes Query By Example (QBE) • Native SQL queries • SQL queries may be defined and called exactly HQL query

  7. Hibernate Features • Persistence for POJOs (JavaBeans) • Flexible and intuitive mapping • Support for fine-grained object models • Powerful, high performance queries • Dual-Layer Caching Architecture (HDLCA) • Lazy loading

More Related