1.

Record Nr.

UNINA9910437972103321

Autore

Keith Mike

Titolo

Pro JPA 2 / / Mike Keith, Merrick Schincariol

Pubbl/distr/stampa

New York : , : Apress, , 2013

ISBN

1-4302-4927-7

Edizione

[2nd ed. 2013.]

Descrizione fisica

1 online resource (xxiii, 484 pages) : illustrations

Collana

The expert's voice in Java

Disciplina

004

005.133

Soggetti

Object-oriented databases

Java (Computer program language)

Lingua di pubblicazione

Inglese

Formato

Materiale a stampa

Livello bibliografico

Monografia

Note generali

"Covers JPA 2.1"--Cover.

"A definitive guide to mastering the Java persistence API"--Cover.

Includes index.

Nota di contenuto

""Contents at a Glance""; ""Contents""; ""About the Authors""; ""About the Technical Reviewer""; ""Acknowledgments""; ""Chapter 1: Introduction""; ""Relational Databases""; ""Object-Relational Mapping""; ""The Impedance Mismatch""; ""Class Representation""; ""Relationships""; ""Inheritance""; ""Java Support for Persistence""; ""Proprietary Solutions""; ""Data Mappers""; ""JDBC""; ""Enterprise JavaBeans""; ""Java Data Objects""; ""Why Another Standard?""; ""The Java Persistence API""; ""History of the Specification""; ""EJB 3.0 and JPA 1.0""; ""JPA 2.0""; ""JPA 2.1""; ""JPA and You""

""Overview""""POJO Persistence""; ""Non-intrusiveness""; ""Object Queries""; ""Mobile Entities""; ""Simple Configuration""; ""Integration and Testability""; ""Summary""; ""Chapter 2: Getting Started""; ""Entity Overview""; ""Persistability""; ""Identity""; ""Transactionality""; ""Granularity""; ""Entity Metadata""; ""Annotations""; ""XML""; ""Configuration by Exception""; ""Creating an Entity""; ""Entity Manager""; ""Obtaining an Entity Manager""; ""Persisting an Entity""; ""Finding an Entity""; ""Removing an Entity""; ""Updating an Entity""; ""Transactions""; ""Queries""

""Putting It All Together""""Packaging It Up""; ""Persistence Unit""; ""Persistence Archive""; ""Summary""; ""Chapter 3: Enterprise



Applications""; ""Application Component Models""; ""Session Beans""; ""Stateless Session Beans""; ""Defining a Stateless Session Bean""; ""Lifecycle Callbacks""; ""Stateful Session Beans""; ""Defining a Stateful Session Bean""; ""Lifecycle Callbacks""; ""Singleton Session Beans""; ""Defining a Singleton Session Bean""; ""Lifecycle Callbacks""; ""Servlets""; ""Dependency Management and CDI""; ""Dependency Lookup""; ""Dependency Injection""; ""Field Injection""

""Setter Injection""""Declaring Dependencies""; ""Referencing a Persistence Context""; ""Referencing a Persistence Unit""; ""Referencing Server Resources""; ""CDI and Contextual Injection""; ""CDI Beans""; ""Injection and Resolution""; ""Scopes and Contexts""; ""Qualified Injection""; ""Producer Methods and Fields""; ""Using Producer Methods with JPA Resources""; ""Transaction Management""; ""Transaction Review""; ""Enterprise Transactions in Java""; ""Transaction Demarcation""; ""Container-managed Transactions""; ""EJB Container-managed Transactions""; ""Transactional Interceptors""

""Bean-managed Transactions""""UserTransaction""; ""Putting It All Together""; ""Defining the Component""; ""Defining the User Interface""; ""Packaging It Up""; ""Summary""; ""Chapter 4: Object-Relational Mapping""; ""Persistence Annotations""; ""Accessing Entity State""; ""Field Access""; ""Property Access""; ""Mixed Access""; ""Mapping to a Table""; ""Mapping Simple Types""; ""Column Mappings""; ""Lazy Fetching""; ""Large Objects""; ""Enumerated Types""; ""Temporal Types""; ""Transient State""; ""Mapping the Primary Key""; ""Overriding the Primary Key Column""; ""Primary Key Types""

""Identifier Generation""

Sommario/riassunto

Pro JPA 2, Second Edition introduces, explains, and demonstrates how to use the new Java Persistence API (JPA) 2.1 from the perspective of one of the specification creators. A one-of-a-kind resource, it provides both theoretical and extremely practical coverage of JPA usage for both beginning and advanced developers. Authors Mike Keith and Merrick Schincariol take a hands–on approach, based on their wealth of experience and expertise, by giving examples to illustrate each concept of the API and showing how it is used in practice. 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 of JPA and be able to successfully code applications using its annotations and APIs. The book also serves as an excellent reference guide during initial and later JPA application experiences. Hands-on examples for all aspects of the JPA specification 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.