Working with objects
Hibernate object states
Hibernate is a full object/relational mapping solution that not only shields the developer from the details of the underlying database management system, but also offers state management of objects.
Making objects persistent
We can make a transient instance persistent by associating it with a session
Loading an object
The load() methods of Session provide a way of retrieving a persistent instance if you know its identifier. load() takes a class object
Querying in Hibernate
SQL of your database, with optional support from Hibernate for result set conversion into objects.
Executing queries in Hibernate
In Hibernate we can obtain a Query using the current Session.
Iterating results in Hibernate
If they are not already cached, iterate() will be slower than list() and might require many database
Queries that return tuples in Hibernate
Hibernate queries sometimes return tuples of objects
Scalar results in Hibernate
Here we can even call SQL aggregate functions. Properties
We can Bind parameters in Hibernate
The advantages of named parameters are as follows:
Pagination in Hibernate
The maximum number of rows you want to retrieve and/or the first row you want to retrieve,
Scrollable iteration in Hibernate
The Query interface can be used to obtain a ScrollableResults object that allows flexible navigation of the query results.
Externalizing named queries uses in Hibernate
if any query contains characters that could be interpreted as markup.
Filtering collections in Hibernate
The query string can refer to this, meaning the current collection element.
Criteria Queries in Hibernate
developers prefer to build queries dynamically using an object-
Queries in native SQL
Whenever we choose the use of the Hibernate API, you must enclose SQL aliases in braces.
Modifying persistent objects in Hibernate
There is no need to call a particular method (like update(), which has a different purpose) to make your modifications persistent.
Modifying detached objects
Applications that use this kind of approach in a high-concurrency environment usually use
Automatic state detection
The usage and semantics of saveOrUpdate() seems to be confusing for new users.
Deleting persistent objects in Hibernate
delete objects in any order, without risk of foreign key constraint violations.
Replicating object between two different datastores in Hibernate
The ReplicationMode determines how replicate() will deal with conflicts with existing rows in the database
Flushing the Session in Hibernate
Except when you explicitly flush(), there are absolutely no guarantees about when the Session
Transitive persistence in Hibernate
This works for operations such as the removal of a child from the collection.
Using metadata in Hibernate
Hibernate exposes metadata via the ClassMetadata and CollectionMetadata
Flush the persistence context
Flush occurs by default (this is Hibernate specific and not defined by the specification)
Locking in Hibernate
Hibernate offers more native cascading options,
Checking the state of an object
You can also check whether an object
Native Hibernate API
Native Hibernate API

Hibernate Tutorial for beginners with Examples

Mapping in Hibernate or Association Mapping in Hibernate

Database Portability Considerations

Mapping with Annotation in Hibernate

Collection mapping

Basic O/R Mapping

Hibernate Mapping types

Caching machanism

HQL: The Hibernate Query Language

Join in hibenrate

Advanced collection mappings

Batch processing

Native SQL

Criteria Queries

Fetching strategies in Hibernate From the DataBase

Hibernate Step By Step Application Using Struts On NetBeans

Hibernate Step By Step Application Using Swing On NetBeans

Hibernate Step By Step Application Using Spring On NetBeans

Hibernate Step By Step Application Using Servlet On NetBeans

Interceptors and events

Filtering data in Hibernate

Working with objects

XML Mapping in Hibernate

Transactions and Concurrency in Hibernate

Inheritance mapping

Component Mapping In Hibernate

Use of Configuration in Hibernate

Persistent Classes in Hibernate

Toolset Guide in Hibernate

Difference Between Save and Persist Method