pro ejb 3 - java persistence api (2006)

480 260 0
pro ejb 3 - java persistence api (2006)

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... 33 3 Keith_6455FRONT.fm Page xiii Tuesday, April 11, 2006 4:29 PM ■C O N T E N T S ■CHAPTER 11 Packaging and Deployment 33 5 Configuring Persistence Units 33 5 Persistence Unit Name 33 6 Transaction Type 33 6 Persistence Provider ... 33 7 Data Source 33 7 Mapping Files 33 8 Managed Classes 33 9 Adding Vendor Properties 34 1 Building and Deploying 34 2 Deployment Classpath 34 2 Packaging Options... 34 3 Persistence Unit Scope 34 7 Outside the Server 34 8 Configuring the Persistence Unit 34 8 Specifying Properties at Runtime 35 0 System Classpath 35 1 Summary 35 1 ■CHAPTER... 433 Keith_6455FRONT.fm Page xv Tuesday, April 11, 2006 4:29 PM Foreword I believe that the Java Persistence API (JPA) is the most important advance in the Java EE 5 platform revision It offers a simple yet powerful standard for object-relational mapping (ORM) Leading persistence vendors have united to develop it, and developers should unite in adopting it Up to and including EJB 2.1, the persistence. .. you to browse for yourself and am confident you will my share my high opinion of Pro EJB 3: Java Persistence API Rod Johnson Founder, Spring Framework CEO, Interface21 Keith_6455FRONT.fm Page xvii Tuesday, April 11, 2006 4:29 PM About the Authors ■ MIKE KEITH is the co-specification lead of EJB 3. 0 and a member of the Java EE 5 expert group He holds a Master of Science degree in computing from Carleton... or general approval in many sectors of the industry But in the absence of a standard, proprietary persistence products such as JBoss Hibernate and Oracle TopLink gained popularity in the industry and have been thriving With the emergence of the Java Persistence API, developers can now create portable persistence code that will run on any compliant Java EE 5 server, as well as in a stand-alone JVM outside... the Java Persistence API is set to have a major impact on the way we handle persistence within Java For the first time, developers have a standard way of bridging the gap between object-oriented domain models and relational database systems Over the course of this book we will introduce the Java Persistence API and explore everything that it has to offer developers Whether you are building client-server... store and use a persistence API to persist the object Because the objects were regular Java objects, this persistence model came to be known as POJO (Plain Old Java Object) persistence The two most popular of these persistence APIs were TopLink in the commercial space and Hibernate in the open source community These and other products grew to support all the major application servers and provided applications... 35 9 The Entity Manager in Unit Tests 36 1 Integration Testing 36 4 Using the Entity Manager 36 4 Components and Persistence 37 0 Best Practices 38 3 Summary 38 4 xiii... the API The examples that accompany the book have been implemented using the official Reference Implementation (RI) of the Java EE 5 application server and the Java Persistence API The Java EE 5 RI is called “Glassfish” and is a fully featured open source application server that can be obtained and used under the Common Development and Distribution License (CDDL) The RI for the Java Persistence API . x0 y0 w0 h0" alt="" Pro EJB 3 Java Persistence API ■■■ Mike Keith Merrick Schincariol Keith_6455FRONT.fm Page i Tuesday, April 11, 2006 4:29 PM Pro EJB 3: Java Persistence API Copyright © 2006. trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street, 6th Floor, New York, NY 100 13. Phone 1-8 00-SPRINGER, fax 201 -3 4 8-4 505, e-mail orders-ny@springer-sbm.com, or visit http://www.springeronline.com. For. copyright owner and the publisher. ISBN- 13 (pbk): 97 8-1 -5 905 9-6 4 5-6 ISBN-10 (pbk): 1-5 905 9-6 4 5-5 Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1 Trademarked names may appear in

Ngày đăng: 26/10/2014, 20:51

Mục lục

  • Pro EJB 3: Java Persistence API

    • Contents

    • CHAPTER 1 Introduction

    • CHAPTER 2 Getting Started

    • CHAPTER 3 Enterprise Applications

    • CHAPTER 4 Object-Relational Mapping

    • CHAPTER 5 Entity Manager

    • CHAPTER 6 Using Queries

    • CHAPTER 7 Query Language

    • CHAPTER 8 Advanced Object-Relational Mapping

    • CHAPTER 9 Advanced Topics

    • CHAPTER 10 XML Mapping Files

    • CHAPTER 11 Packaging and Deployment

    • CHAPTER 12 Testing

    • CHAPTER 13 Migration

    • APPENDIX Quick Reference

    • INDEX

Tài liệu cùng người dùng

Tài liệu liên quan