CANCEL
Subscription
0
Your Cart
(0 item)
You have no products in your basket yet
Checkout
Account
Sign in
New User?
Create Account
Your Subscription
Your Owned Titles
Your Account
Your Orders
Change country
United States
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Japan
Slovakia
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
GO TO
TOP
You're reading from
Java Hibernate Cookbook
Over 50 recipes to help you build dynamic and powerful real-time Java Hibernate applications
Product type
Paperback
Published in
Sep 2015
Publisher
ISBN-13
9781784391904
Length
250 pages
Edition
1st Edition
Languages
Java
Tools
Hibernate
Concepts
Application Development
Table of Contents
(10) Chapters
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Conventions
Reader feedback
Customer support
1. Setting Up Hibernate
FREE CHAPTER
Introduction
Getting the required libraries for hibernate
Creating a hibernate persistent class
Providing an XML-based hibernate mapping
Providing an annotation-based hibernate mapping
Providing a hibernate configuration using an XML file
Providing a hibernate configuration using the properties file
Configuring hibernate programmatically
2. Understanding the Fundamentals
Introduction
Building a SessionFactory
Creating a generic SessionFactory provider class
Opening a new session
Opening a stateless session
Saving an object to the database
Fetching an object from the database
Removing an object from the database
Updating an object
Creating a criteria
Restricting the results using a criteria
Pagination using a criteria
Sorting the results
Transforming a result
Using basic projection
3. Basic Annotations
Introduction
Declaring a class as an entity and creating a table in the database – @Entity and @Table
Creating a column in the table – @Column
Creating a primary key and composite primary key column – @Id and @IdClass
Creating an autogenerator column
4. Working with Collections
Introduction
Persisting List
Persisting Set
Persisting Map
Persisting Array
5. Working with Associations
Introduction
One-to-one mapping using foreign key association
One-to-one mapping using a common join table
One-to-one mapping using a common primary key
One-to-many mapping or many-to-one mapping
Many-to-many mapping
6. Querying
Introduction
Working with an alias
Performing aggregate operations
Executing a subquery using a criteria
Executing a native SQL query
Executing a query using HQL
Using formula in hibernate
Working with NamedQuery
7. Advanced Concepts
Introduction
Working with a first-level cache
Working with a second-level cache
Working with a query cache
Working with the table per class hierarchy strategy of inheritance
Working with the table per subclass strategy of inheritance
Working with the table per concrete class strategy of inheritance
Working with the versioning of objects
Maintaining the history of an object
Working with an interceptor
Working with batch processing
8. Integration with Other Frameworks
Introduction
Integration with Spring
Integration with Struts
Index
Chapter 4. Working with Collections
In this chapter, we will cover the following recipes:
Persisting
List
Persisting
Set
Persisting
Map
Persisting
Array
The rest of the chapter is locked
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Start free trial
Previous Section
Section 1 of 6
Next Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Sign up now
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Start free trial
Renews at
$19.99/month
. Cancel anytime
Can$12.99 | ALL EBOOKS, VIDEOS & AUDIOBOOKS
Your learning journey starts here: 8000+ learning resources for
Can$12.99
each!
SHOP NOW
Personalised recommendations for you
Based on your interests and search pattern
Pragmatic Microservices with C# and Azure
Read more
This book empowers you with in-depth knowledge of microservices architecture using .NET and Azure. Through hands-on tutorials, you'll be able to build, deploy, and manage scalable applications, gaining crucial skills for modern software development.
Read more
May 2024
16h 56m
Pragmatic Microservices with C# and Azure
Read more
This book empowers you with in-depth knowledge of microservices architecture using .NET and Azure. Through hands-on tutorials, you'll be able to build, deploy, and manage scalable applications, gaining crucial skills for modern software development.
Read more
May 2024
16h 56m
Pragmatic Microservices with C# and Azure
Read more
This book empowers you with in-depth knowledge of microservices architecture using .NET and Azure. Through hands-on tutorials, you'll be able to build, deploy, and manage scalable applications, gaining crucial skills for modern software development.
Read more
May 2024
16h 56m
Pragmatic Microservices with C# and Azure
Read more
This book empowers you with in-depth knowledge of microservices architecture using .NET and Azure. Through hands-on tutorials, you'll be able to build, deploy, and manage scalable applications, gaining crucial skills for modern software development.
Read more
May 2024
16h 56m
Pragmatic Microservices with C# and Azure
Read more
This book empowers you with in-depth knowledge of microservices architecture using .NET and Azure. Through hands-on tutorials, you'll be able to build, deploy, and manage scalable applications, gaining crucial skills for modern software development.
Read more
May 2024
16h 56m
Pragmatic Microservices with C# and Azure
Read more
This book empowers you with in-depth knowledge of microservices architecture using .NET and Azure. Through hands-on tutorials, you'll be able to build, deploy, and manage scalable applications, gaining crucial skills for modern software development.
Read more
May 2024
16h 56m
Pragmatic Microservices with C# and Azure
Read more
This book empowers you with in-depth knowledge of microservices architecture using .NET and Azure. Through hands-on tutorials, you'll be able to build, deploy, and manage scalable applications, gaining crucial skills for modern software development.
Read more
May 2024
16h 56m
Pragmatic Microservices with C# and Azure
Read more
This book empowers you with in-depth knowledge of microservices architecture using .NET and Azure. Through hands-on tutorials, you'll be able to build, deploy, and manage scalable applications, gaining crucial skills for modern software development.
Read more
May 2024
16h 56m
Pragmatic Microservices with C# and Azure
Read more
This book empowers you with in-depth knowledge of microservices architecture using .NET and Azure. Through hands-on tutorials, you'll be able to build, deploy, and manage scalable applications, gaining crucial skills for modern software development.
Read more
May 2024
16h 56m
Pragmatic Microservices with C# and Azure
Read more
This book empowers you with in-depth knowledge of microservices architecture using .NET and Azure. Through hands-on tutorials, you'll be able to build, deploy, and manage scalable applications, gaining crucial skills for modern software development.
Read more
May 2024
16h 56m
Mastering Python Design Patterns
Read more
Unlock the power of design patterns to build maintainable and scalable software and applications using Python. Authored by Python veterans, this book is your guide to mastering design patterns in Python.
Read more
May 2024
9h 52m
Mastering Python Design Patterns
Read more
Unlock the power of design patterns to build maintainable and scalable software and applications using Python. Authored by Python veterans, this book is your guide to mastering design patterns in Python.
Read more
May 2024
9h 52m