Pro JPA 2: Mastering the Java Persistence API (Paperback)

Mike Keith, Merrick Schincariol, Jeremy Keith

  • 出版商: Apress
  • 出版日期: 2009-11-25
  • 售價: $2,390
  • 貴賓價: 9.5$2,271
  • 語言: 英文
  • 頁數: 500
  • 裝訂: Paperback
  • ISBN: 1430219564
  • ISBN-13: 9781430219569
  • 相關分類: Java 程式語言
  • 海外代購書籍(需單獨結帳)



Pro JPA 2 introduces, explains, and demonstrates how to use the new Java Persistence API (JPA). JPA provides Java developers with both the knowledge and insight needed to write Java applications that access relational databases through JPA.

Authors Mike Keith and Merrick Schincariol take a hands–on approach to teaching by giving examples to illustrate each new concept of the API and showing how it is used in practice.

All of the examples use a common model from an overriding sample application, giving readers a context from which to start and helping them to understand the examples within an already familiar domain.

After completing the book, you will have a full understanding and be able to successfully code applications using JPA. The book also serves as a reference guide during initial and later JPA application experiences.

  • Hands-on examples for all the aspects of the JPA specification, based on the reference implementation of this specification
  • A special section on migration to JPA
  • Expert insight about various aspects of the API and when they are useful
  • Portability hints to provide increased awareness of the potential for non–portable JPA code

What you’ll learn

  • Get started with enterprise applications using JPA 2.
  • Get up to speed with Object–Relational Mapping and Entity Manager.
  • Learn and use queries and the query language (JP QL).
  • Employ advanced Object–Relational Mapping techniques.
  • Use XML mapping files and learn other advanced techniques.
  • Package and deploy your Java persistence applications.
  • Test your Java persistence applications.
  • Migrate your Java persistence applications.

Who is this book for?

The book generally targets enterprise and persistence developers who fall in one of three categories:

  • Those who are new to persistence; we will present some background information and introduce these readers to the basic persistence concepts to bring them up to speed.
  • Those who know and/or use existing ORM persistence products such as Hibernate or TopLink.
  • Those who have already used JPA and want to learn about the new features that JPA 2 introduces, or have a good reference book to turn to when they develop JPA applications.

In general, we assume that the reader is knowledgeable with Java, SQL, and JDBC, and has a little knowledge of J2EE

About the Apress Pro Series

The Apress Pro series books are practical, professional tutorials to keep you on and moving up the professional ladder.

You have gotten the job, now you need to hone your skills in these tough competitive times. The Apress Pro series expands your skills and expertise in exactly the areas you need. Master the content of a Pro book, and you will always be able to get the job done in a professional development project. Written by experts in their field, Pro series books from Apress give you the hard–won solutions to problems you will face in your professional programming career.


《Pro JPA 2》介紹、解釋並示範如何使用新的Java Persistence API(JPA)。JPA為Java開發人員提供了存取關聯式資料庫的知識和洞察力,以撰寫使用JPA的Java應用程式。

作者Mike Keith和Merrick Schincariol以實例來說明API的每個新概念,並展示其在實踐中的應用,採取了實踐式的教學方法。



  • 基於該規範的參考實現,提供JPA規範各個方面的實例

  • 關於遷移至JPA的特別部分

  • 對API的各個方面以及何時使用它們的專業見解

  • 可移植性提示,提高對非可移植JPA程式碼的認識


  • 使用JPA 2開始企業應用程式

  • 熟悉物件關聯映射和實體管理器

  • 學習和使用查詢和查詢語言(JP QL)

  • 應用高級物件關聯映射技術

  • 使用XML映射檔案並學習其他高級技術

  • 打包和部署Java持久性應用程式

  • 測試Java持久性應用程式

  • 遷移Java持久性應用程式



  • 對持久性新手:我們將提供一些背景資訊,並介紹基本的持久性概念,以使這些讀者能夠快速上手。

  • 熟悉和/或使用現有ORM持久性產品(如Hibernate或TopLink)的人。

  • 已經使用過JPA並希望了解JPA 2引入的新功能,或者需要一本良好的參考書來開發JPA應用程式的人。


關於Apress Pro系列

Apress Pro系列書籍是實用的專業教程,可幫助您在職業生涯中不斷提升自己。

您已經找到了工作,現在您需要在這個競爭激烈的時代中磨練自己的技能。Apress Pro系列擴展了您在所需領域的技能和專業知識。掌握Pro系列書籍的內容,您將始終能夠在專業開發項目中完成工作。Apress Pro系列書籍由各自領域的專家撰寫,為您提供在職業程式設計生涯中遇到的問題的寶貴解決方案。