Just Hibernate - Helion
ISBN: 978-14-493-3433-8
stron: 140, Format: ebook
Data wydania: 2014-06-05
Księgarnia: Helion
Cena książki: 92,65 zł (poprzednio: 107,73 zł)
Oszczędzasz: 14% (-15,08 zł)
If you’re looking for a short, sweet, and simple introduction (or reintroduction) to Hibernate, this is the book you want. Through clear real-world examples, you’ll learn Hibernate and object-relational mapping from the ground up, starting with the basics. Then you’ll dive into the framework’s moving parts to understand how they work in action.
Storing Java objects in relational databases is usually a challenging and complex task for any Java developer, experienced or not. This book, like others in the Just series, delivers a concise, example-driven tutorial for Java beginners. You’ll gain enough knowledge and confidence to start working on real-world projects with Hibernate.
- Compare how JDBC and Hibernate work with object persistence
- Learn how annotations are used to create Hibernate applications
- Understand how to persist and retrieve Java data structures
- Focus on the fundamentals of associations and their mappings
- Delve into advanced concepts such as caching, inheritance, and types
- Walk through the Hibernate Query Language API, with examples
- Develop Java Persistence API applications, using Hibernate as the provider
- Work hands-on with code snippets to understand the technology
Osoby które kupowały "Just Hibernate", wybierały także:
- Wprowadzenie do Javy. Programowanie i struktury danych. Wydanie XII 193,23 zł, (59,90 zł -69%)
- Spring i Spring Boot. Kurs video. Testowanie aplikacji i bezpiecze 129,00 zł, (51,60 zł -60%)
- Metoda dziel i zwyci 89,00 zł, (35,60 zł -60%)
- JavaFX. Kurs video. Wzorce oraz typy generyczne 79,00 zł, (31,60 zł -60%)
- Platforma Xamarin. Kurs video. Poziom drugi. Zaawansowane techniki tworzenia aplikacji cross-platform 99,00 zł, (39,60 zł -60%)
Spis treści
Just Hibernate eBook -- spis treści
- Just Hibernate
- Foreword
- Preface
- Who Should Read This Book
- Why I Wrote This Book
- How This Book Is Organized
- Conventions Used in This Book
- Using Code Examples
- Safari Books Online
- How to Contact Us
- Acknowledgments
- A Note from the Author
- Dedication
- 1. Basics
- Birth of Hibernate
- Problem Domain
- MovieManager Application
- Using JDBC
- Improvising the Movie Application
- MovieManager Application
- Using Hibernate
- Configure the Database Connection
- Create Mapping Definitions
- Persist the Objects
- Creating the Persist Method
- Testing the Persisted Data
- Setting Up Hibernate
- Summary
- 2. Fundamentals
- Object-Relational Mismatch
- Inheritance Mismatch
- Identity Mismatch
- Relations and Associations Mismatch
- Hibernates Main Parts
- Persistent Classes
- Example: Trading Application
- Using Annotations
- Configuration
- Using a Properties File
- Using the XML File
- Configuration Properties
- Programmatic Configuration
- Mapping
- XML Mapping Files
- Identifier Generation Strategies
- Session APIs
- Transactions
- Summary
- Object-Relational Mismatch
- 3. Annotations
- Working Through an Example
- Digging into Details
- ID Generation Strategies
- Composite Identifiers
- Using Primary Key Class and @Id
- Using Primary Key Class and @EmbeddedId
- Using @IdClass
- Summary
- 4. Persisting Collections
- Designing to Interfaces
- Persisting Lists
- List Example: Car Showroom
- Test Client for List Persistence
- Persisting Sets
- Persisting Maps
- Persisting Arrays
- Persisting Bags and IdBags
- Persisting Collections Using Annotations
- Using a Foreign Key
- Using a Join Table
- Summary
- 5. Associations
- Associations
- Multiplicity
- Directionality
- One-to-One Association
- Using a Primary Key
- Testing the Association
- Using a Foreign Key
- Annotations
- One-to-Many (or Many-to-One) Association
- Bidirectional One-to-Many Association
- Many-to-Many Association
- Summary
- Associations
- 6. Advanced Concepts
- Hibernate Types
- Entity and Value Types
- Custom Types
- Components
- Caching
- First-Level Caching
- Second-Level Caching
- Caching Queries
- Inheritance Strategies
- Table-per-Class Strategy
- Table-per-class strategy using XML mapping
- Table-per-class strategy using annotations
- Table-per-Subclass Strategy
- Table-per-subclass strategy using XML mapping
- Table-per-subclass using annotations
- Table-per-Concrete-Class Strategy
- Table-per-Concrete-Class Strategy Using XML mapping
- Table-per-concrete-class strategy using annotations
- Table-per-Class Strategy
- Filters
- Creating Filter Definitions
- Enabling Filters
- Relationship Owner (aka Inverse Attribute)
- Cascading Entities
- Summary
- Hibernate Types
- 7. Hibernate Query Language
- Working with the Query Class
- Fetching All Rows
- Pagination
- Retrieving a Unique Record
- Named Parameters
- Using the IN option
- Positional Parameters
- Aliases
- Iterators
- Selects
- Aggregate Functions
- Updates and Deletes
- Criterias
- Named Queries
- Native SQL
- Summary
- Working with the Query Class
- 8. Java Persistence API
- Hibernate and JPA
- Persistence Context
- EntityManagerFactory
- EntityManager
- Persisting Objects
- Saving and Querying Entities
- Summary
- Hibernate and JPA
- Index
- Colophon
- Copyright