15 jpa introduction

4
Professional Open Source™ © JBoss, Inc. 2003, 2004. 1 07/17/04 JPA Introduction

Upload: thirumuru2012

Post on 18-Dec-2014

186 views

Category:

Technology


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: 15 jpa introduction

Professional Open Source™

© JBoss, Inc. 2003, 2004. 1

07/17/04

JPA Introduction

Page 2: 15 jpa introduction

© JBoss, Inc. 2003, 2004. 2

Professional Open Source™

What is JPA ?

JPA is a specification .

Hibernate is an implementation of this specification.

Two important principles in this specification are :

JPA engines should be pluggable, which means you should be able to take out one product and replace it with another if you aren’t satisfied—even if you want to stay with the same EJB

3.0 container JPA engines should be able to run outside of an EJB

3.0 runtime environment, without a container in plain Java.

Page 3: 15 jpa introduction

© JBoss, Inc. 2003, 2004. 3

Professional Open Source™

Modules in Hibernate

Hibernate Core

Hibernate Annotations

Hibernate EntityManager

Page 4: 15 jpa introduction

© JBoss, Inc. 2003, 2004. 4

Professional Open Source™

Hibernate Core

It is the base service for persistence, with its native API and its mapping metadata stored in XML files.

It has a query language called HQL , as well as programmatic query interfaces for Criteria and Example queries.

Hibernate Core is the foundation and the platform all other modules are built on.