Book description
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
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.
Quotes
The most comprehensive book about Hibernate Persistence ... works well both as a tutorial and as a reference.
- Sergio Fernandez Gonzalez, Accenture Software
The essential guidebook for navigating the intricacies of Hibernate.
- José Diaz, OptumHealth
An excellent update to a classic and essential book.
- Jerry Goodnough, Cognitive Medical Systems
The must-have reference for every Hibernate user.
- Stephan Heffner, SPIEGEL-Verlag Rudolf Augstein GmbH & Co. KG
Table of contents
- Java Persistence with Hibernate
- Praise for the First Edition
- Copyright
- Dedication
- Brief Table of Contents
- Table of Contents
- front matter
- Part 1. Getting started with ORM
- Chapter 1. Understanding object/relational persistence
- Chapter 2. Starting a project
- Chapter 3. Domain models and metadata
- Part 2. Mapping strategies
- Chapter 4. Mapping persistent classes
- Chapter 5. Mapping value types
-
Chapter 6. Mapping inheritance
- 6.1. Table per concrete class with implicit polymorphism
- 6.2. Table per concrete class with unions
- 6.3. Table per class hierarchy
- 6.4. Table per subclass with joins
- 6.5. Mixing inheritance strategies
- 6.6. Inheritance of embeddable classes
- 6.7. Choosing a strategy
- 6.8. Polymorphic associations
- 6.9. Summary
- Chapter 7. Mapping collections and entity associations
- Chapter 8. Advanced entity association mappings
- Chapter 9. Complex and legacy schemas
- Part 3. Transactional data processing
-
Chapter 10. Managing data
- 10.1. The persistence life cycle
-
10.2. The EntityManager interface
- 10.2.1. The canonical unit of work
- 10.2.2. Making data persistent
- 10.2.3. Retrieving and modifying persistent data
- 10.2.4. Getting a reference
- 10.2.5. Making data transient
- 10.2.6. Refreshing data
- 10.2.7. Replicating data
- 10.2.8. Caching in the persistence context
- 10.2.9. Flushing the persistence context
- 10.3. Working with detached state
- 10.4. Summary
- Chapter 11. Transactions and concurrency
- Chapter 12. Fetch plans, strategies, and profiles
- Chapter 13. Filtering data
- Part 4. Writing queries
- Chapter 14. Creating and executing queries
- Chapter 15. The query languages
- Chapter 16. Advanced query options
- Chapter 17. Customizing SQL
- Part 5. Building applications
- Chapter 18. Designing client/server applications
- Chapter 19. Building web applications
- Chapter 20. Scaling Hibernate
- Appendix. References
- Index
- List of Figures
- List of Tables
- List of Listings
Product information
- Title: Java Persistence with Hibernate, Second Edition
- Author(s):
- Release date: October 2015
- Publisher(s): Manning Publications
- ISBN: 9781617290459
You might also like
book
Java Persistence with Spring Data and Hibernate
Master Java persistence using the industry-leading tools Spring Data and Hibernate. In Java Persistence with Spring …
book
Beginning Hibernate 6: Java Persistence from Beginner to Pro
Get started with Hibernate, an open source Java persistence layer and gain a clear introduction to …
video
Hibernate and Java Persistence API (JPA) Fundamentals
In this Hibernate and Java Persistence API (JPA) Fundamentals training course, expert author Kevin Bowersox will …
book
Pro JPA 2 in Java EE 8: An In-Depth Guide to Java Persistence APIs
Learn to use the Java Persistence API (JPA) and other related APIs as found in the …