Java Persistence with Hibernate / Edition 2

Java Persistence with Hibernate / Edition 2

ISBN-10:
1617290459
ISBN-13:
9781617290459
Pub. Date:
11/08/2015
Publisher:
Manning
ISBN-10:
1617290459
ISBN-13:
9781617290459
Pub. Date:
11/08/2015
Publisher:
Manning
Java Persistence with Hibernate / Edition 2

Java Persistence with Hibernate / Edition 2

$59.99 Current price is , Original price is $59.99. You
$59.99 
  • SHIP THIS ITEM
    Qualifies for Free Shipping
  • PICK UP IN STORE
    Check Availability at Nearby Stores
  • SHIP THIS ITEM

    Temporarily Out of Stock Online

    Please check back later for updated availability.


Overview

Summary

Java Persistence with Hibernate, Second Edition explores Hibernate by developing an application that ties together hundreds of individual examples. In this revised edition, authors Christian Bauer, Gavin King, and Gary Gregory cover Hibernate 5 in detail with the Java Persistence 2.1 standard (JSR 338). All examples have been updated for the latest Hibernate and Java EE specification versions.

About the Technology

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

Persistence—the ability of data to outlive an instance of a program—is central to modern applications. Hibernate, the most popular Java persistence tool, offers automatic and transparent object/relational mapping, making it a snap to work with SQL databases in Java applications.

About the Book

Java Persistence with Hibernate, Second Edition explores Hibernate by developing an application that ties together hundreds of individual examples. You'll immediately dig into the rich programming model of Hibernate, working through mappings, queries, fetching strategies, transactions, conversations, caching, and more. Along the way you'll find a well-illustrated discussion of best practices in database design and optimization techniques. In this revised edition, authors Christian Bauer, Gavin King, and Gary Gregory cover Hibernate 5 in detail with the Java Persistence 2.1 standard (JSR 338). All examples have been updated for the latest Hibernate and Java EE specification versions.

What's Inside
  • Object/relational mapping concepts
  • Efficient database application design
  • Comprehensive Hibernate and Java Persistence reference
  • Integration of Java Persistence with EJB, CDI, JSF, and JAX-RS * Unmatched breadth and depth

About the Reader

The book assumes a working knowledge of Java.

About the Authors

Christian Bauer is a member of the Hibernate developer team and a trainer and consultant. Gavin King is the founder of the Hibernate project and a member of the Java Persistence expert group (JSR 220). Gary Gregory is a principal software engineer working on application servers and legacy integration.

Table of Contents
  1. Understanding object/relational persistence
  2. Starting a project
  3. Domain models and metadata
  4. Mapping persistent classes
  5. Mapping value types
  6. Mapping inheritance
  7. Mapping collections and entity associations
  8. Advanced entity association mappings
  9. Complex and legacy schemas
  10. Managing data
  11. Transactions and concurrency
  12. Fetch plans, strategies, and profiles
  13. Filtering data
  14. Creating and executing queries
  15. The query languages
  16. Advanced query options
  17. Customizing SQL

Product Details

ISBN-13: 9781617290459
Publisher: Manning
Publication date: 11/08/2015
Edition description: 2nd Edition
Pages: 608
Product dimensions: 7.30(w) x 9.20(h) x 1.40(d)

About the Author

Christian Bauer is a member of the Hibernate developer team and a trainer, consultant, and product manager for Hibernate, EJB 3.0, and JBoss Seam at JBoss.

Gavin King, a lead developer at JBoss, is the founder of the Hibernate project, and a member of the EJB 3.0 (JSR 220) expert group. He also leads the Web Beans JSR 299, a standardization effort involving Hibernate concepts, JSF, and EJB 3.0.

Gary Gregory is a Java developer with 20+ years of experience who currently develops application servers for legacy integration.

Table of Contents

foreword to t he revised edition xix
foreword to the first edition xxi
preface to the revised edition xxiii
preface to the first edition xxv
acknowledgments xxviii
about this book xxix
about the cover illustration xxxiii

Part 1 Getting started with Hibernate and EJB 3.0 1

Chapter 1 Understanding object/relational persistence 3
What is persistence? 5
The paradigm mismatch 10
Persistence layers and alternatives 20
Object/relational mapping 24
Summary 35
Chapter 2 Starting a project 37
Starting a Hibernate project 38
Starting a Java Persistence project 68
Reverse engineering a legacy database 88
Integration with Java EE services 96
Summary 104
Chapter 3 Domain models and metadata 105
The CaveatEmptor application 106
Implementing the domain model 110
Object/relational mapping metadata 123
Alternative entity representation 140
Summary 152

Part 2 Mapping concepts and strategies 155

Chapter 4 Mapping persistent classes 157
Understanding entities and value types 158
Mapping entities with identity 161
Class mapping options 171
Fine-grained models and mappings 177
Summary 189
Chapter 5 Inheritance and custom types 191
Mapping class inheritance 192
The Hibernate type system 212
Creating custom mapping types 220
Summary 239
Chapter 6 Mapping collections and entity associations 240
Sets, bags, lists, and maps of value types 241
Collections of components 251
Mapping collections with annotations 256
Mapping a parent/children relationship 260
Summary 275
Chapter 7 Advanced entity association mappings 277
Single-valued entity associations 278
Many-valued entity associations 290
Polymorphic associations 313
Summary 321
Chapter 8 Legacy databases and custom SQL 322
Integrating legacy databases 323
Customizing SQL 350
Improving schema DDL 364
Summary 378

Part 3 Conversational object processing 381

Chapter 9 Working with objects 383
The persistence lifecycle 384
Object identity and equality 391
The Hibernate interfaces 401
The Java Persistence API 417
Using Java Persistence in EJB components 426
Summary 431
Chapter 10 Transactions and concurrency 433
Transaction essentials 434
Controlling concurrent access 453
Nontransactional data access 469
Summary 474
Chapter 11 Implementing conversations 476
Propagating the Hibernate Session 477
Conversations with Hibernate 485
Conversations with JPA 497
Conversations with EJB 3.0 506
Summary 515
Chapter 12 Modifying objects efficiently 517
Transitive persistence 518
Bulk and batch operations 532
Data filtering and interception 540
Summary 558
Chaoter 13 Optimizing fetching and caching 559
Defining the global fetch plan 560
Selecting a fetch strategy 573
Caching fundamentals 592
Caching in practice 602
Summary 612
Chapter 14 Querying with HQL and JPA QL 614
Creating and running queries 615
Basic HQL and JPA QL queries 633
Joins, reporting queries, and subselects 643
Summary 662
Chapter 15 Advanced query options 663
Querying with criteria and example 664
Using native SQL queries 683
Filtering collections 688
Caching query results 691
Summary 695
Chapter 16 Creating and testing layered applications 697
Hibernate in a web application 698
Creating a persistence layer 708
Introducing the Command pattern 718
Designing applications with EJB 3.0 725
Testing 730
Summary 746
Chapter 17 Introducing JBoss Seam 747
The Java EE 5.0 programming model 748
Improving the application with Seam 765
Understanding contextual components 779
Validating user input 789
Simplifying persistence with Seam 803
Summary 816

appendix A SQL fundamentals 818
appendix B Mapping quick reference 822
references 824
index 825
From the B&N Reads Blog

Customer Reviews