CANCEL
Subscription
0
Your Cart
(0 item)
You have no products in your basket yet
Save more on your purchases!
Buy 3-4 products and each title is $7.99
Buy 5+ products and each title is $4.99
Savings automatically calculated. No voucher code required.
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
Ukraine
Luxembourg
Estonia
Lithuania
South Korea
Turkey
Switzerland
Colombia
Taiwan
Chile
Norway
Ecuador
Indonesia
New Zealand
Cyprus
Denmark
Finland
Poland
Malta
Czechia
Austria
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Netherlands
Bulgaria
Latvia
South Africa
Malaysia
Japan
Slovakia
Philippines
Mexico
Thailand
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
SALE ENDS IN
0
Days
:
00
Hours
:
00
Minutes
:
00
Seconds
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
$9.99 | ALL EBOOKS, VIDEOS & AUDIOBOOKS
Your learning journey starts here: 8000+ learning resources for
$9.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
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
System Programming Essentials with Go
Read more
From file operations to process management and network programming, this hands-on guide equips software engineers with the skills to build efficient, reliable applications and optimize their performance.
Read more
Jun 2024
13h 36m
Modern Python Cookbook
Read more
The new edition of Modern Python Cookbook provides over 130 recipes for solving real-world problems with Python. Updated for Python 3.12 with new recipes and chapters. This practical guide will enhance your skills and teach you advanced techniques.
Read more
Jul 2024
27h 16m
The Ultimate Zoom Cookbook
Read more
This cookbook is an in-depth guide to using Zoom effectively. You'll be able to follow each recipe easily to harness the power of the communication and collaboration tools in Zoom.
Read more
May 2024
11h 20m
Enterprise Architecture with .NET
Read more
This book will help you create applications that integrate correctly into complex and ever-changing information systems. You'll execute this by using industry standards that reduce the app's technical debt and elevate software development practices.
Read more
May 2024
25h 44m
Salesforce B2C Solution Architect's Handbook
Read more
Discover how Salesforce Customer 360 unifies Marketing Cloud, B2C Commerce, Data Cloud, and Service Cloud into one solution, and learn the capabilities, integration options, limitations, and workflows to create value for your organization.
Read more
May 2024
15h 28m
Systems Programming with C# and .NET
Read more
Unlock the full potential of C# and .NET Core in systems programming to secure, deploy, and maintain robust applications. With this book, you'll focus on low-level APIs, memory management, and performance optimization.
Read more
Jul 2024
15h 48m
Technical Program Manager's Handbook
Read more
Unlock the full potential of your career as a TPM with this comprehensive guide, featuring new chapters on AI and more. Learn advanced techniques and gain insights from industry leaders. Elevate your skills and thrive in the Big Five tech companies.
Read more
Sep 2024
12h 16m
Microsoft Power Pages in Action
Read more
Packed with real-world examples, low-code coding techniques, and insights into crafting responsive pages, automating apps, and enhancing virtual agents, Microsoft Power Pages in Action is a valuable resource for building feature-rich web apps.
Read more
Jun 2024
11h 40m