Homepage
Open in app
Sign in
Get started
Hibernate At the Gates of Mastery
JPA guide from Paul Ravvich www.linkedin.com/in/pavel-ravvich
Follow
Dirty Checking Magic in Hibernate: How it Works and Why It’s Important
Dirty Checking Magic in Hibernate: How it Works and Why It’s Important
Dirty Checking is a mechanism used by Hibernate to determine whether any value of an entity has changed…
Paul Ravvich
Aug 19, 2023
Optimistic vs. Pessimistic Locking in Spring Data
Optimistic vs. Pessimistic Locking in Spring Data
Optimistic locking is used when data conflicts are rare, using a version column to prevent concurrent updates unless the data is unchanged…
Paul Ravvich
Aug 16, 2023
JPA Entity Lifecycle Statuses: A Comprehensive Guide
JPA Entity Lifecycle Statuses: A Comprehensive Guide
The four primary entity statuses are New, Managed, Detached, and Removed, each defining how entities interact with the persistence context…
Paul Ravvich
Aug 16, 2023
Mastering Embedded Entities in Hibernate and Spring Data JPA: A Comprehensive Guide
Mastering Embedded Entities in Hibernate and Spring Data JPA: A Comprehensive Guide
Hi, this is Paul, and welcome to the JPA guide. Today we will discuss how to create embeddable entities.
Paul Ravvich
Feb 5
How @QueryHints in Spring Data JPA Can Speed Up Your Applications: A Practical Guide
How @QueryHints in Spring Data JPA Can Speed Up Your Applications: A Practical Guide
Hi, this is Paul, and welcome to the guide on using @QueryHints annotation to optimize DB interactions via JPA.
Paul Ravvich
Feb 13
CascadeType Managing Related Entities in JPA Hibernate and Spring Data
CascadeType Managing Related Entities in JPA Hibernate and Spring Data
An article covers managing entity relationships in JPA and Spring Data JPA, focusing on the use of CascadeType and orphanRemoval=true. It…
Paul Ravvich
Feb 24
SpringData N+1 solution with @NamedEntityGraph
SpringData N+1 solution with @NamedEntityGraph
In the development of Java applications, optimizing database queries plays a crucial role, especially when working with JPA. The…
Paul Ravvich
Feb 24
Optimizing Hibernate Performance: Mastering Level 1, Level 2, and Query Caches
Optimizing Hibernate Performance: Mastering Level 1, Level 2, and Query Caches
We will explore the caching levels in Hibernate, and their principles of operation…
Paul Ravvich
Apr 30, 2023
Hibernate v6 Event Listeners instead of Interceptors
Hibernate v6 Event Listeners instead of Interceptors
Hibernate provides event listener interfaces for intercepting entity lifecycle stages…
Paul Ravvich
Feb 26
Mastering Hibernate Entity Callbacks
Mastering Hibernate Entity Callbacks
Hibernate Entity Callbacks can significantly optimize your application’s data-handling…
Paul Ravvich
Feb 28
Hibernate Optimization with @BatchSize and batch_size Configuration
Hibernate Optimization with @BatchSize and batch_size Configuration
Hibernate offers optimization mechanisms for efficient interaction with the database, particularly through the @BatchSize annotation and…
Paul Ravvich
Mar 1
Hibernate, Spring Data, and Specification: Filters for Lists with Pagination on Related Entities
Hibernate, Spring Data, and Specification: Filters for Lists with Pagination on Related Entities
This guide will combine Hibernate, Spring Data, and Specification to create a powerful solution adaptable to any search criteria. We will…
Paul Ravvich
Mar 6
Hibernate Spring Data JPA Projections Optimization and Avoid LazyInitializationException
Hibernate Spring Data JPA Projections Optimization and Avoid LazyInitializationException
The article highlights the efficacy of Spring Data JPA Projections in streamlining database interactions by selectively retrieving data…
Paul Ravvich
Mar 7
Hibernate LazyInitializationException Solutions
Hibernate LazyInitializationException Solutions
LazyInitializationException, including code examples and best practices for avoiding this error. It examines approaches to correctly…
Paul Ravvich
Mar 9
Hibernate: Composite Primary Keys with @Embeddable and @IdClass
Hibernate: Composite Primary Keys with @Embeddable and @IdClass
A composite primary key is a crucial concept in the database world, allowing for the unique identification of a record in a table through a…
Paul Ravvich
Mar 14
Hibernate Managing Enums in Java and JPA with @Enumerated
Hibernate Managing Enums in Java and JPA with @Enumerated
In the world of Java, annotations play a key role, especially when working with enumerations (enums) and databases through Java Persistence…
Paul Ravvich
Mar 14
Hibernate: Custom Enum Converter Guide with AttributeConverter implementation example
Hibernate: Custom Enum Converter Guide with AttributeConverter implementation example
In Java Persistence API (JPA), managing enumeration (enum) persistence elegantly can sometimes require going beyond the standard…
Paul Ravvich
Mar 15
Hibernate Managing Transactions in Spring with @Transactional annotation Handling Nested…
Hibernate Managing Transactions in Spring with @Transactional annotation Handling Nested…
The Spring Framework provides a powerful abstraction for managing transactions through the @Transactional annotation, which simplifies the…
Paul Ravvich
Mar 15
Hibernate Work with @Inheritance strategies: SINGLE_TABLE, TABLE_PER_CLASS, JOINED examples
Hibernate Work with @Inheritance strategies: SINGLE_TABLE, TABLE_PER_CLASS, JOINED examples
Hibernate supports inheritance, allowing the mapping of a Java class hierarchy to a database structure. This article will examine in detail…
Paul Ravvich
Mar 17
Hibernate @MappedSuperclass for Inheritance
Hibernate @MappedSuperclass for Inheritance
Hibernate is its support for inheritance, and the @MappedSuperclass annotation plays a central role in this. In this article, we will…
Paul Ravvich
Mar 18
Hibernate @AttributeOverride for @Embaddable Entity
Hibernate @AttributeOverride for @Embaddable Entity
@AttributeOverride — This annotation allows us to override the mapping of fields in embeddable classes for each use, adding flexibility to…
Paul Ravvich
Mar 20
Understanding the @Transient Annotation in Hibernate
Understanding the @Transient Annotation in Hibernate
The @Transient annotation in Hibernate is a marker used to indicate that a particular field should not be persistently stored in the…
Paul Ravvich
Mar 23
Understanding the @Temporal Annotation in Hibernate: A Practical Guide
Understanding the @Temporal Annotation in Hibernate: A Practical Guide
In this article, we delve into the practical use of the @Temporal annotation in Hibernate, exemplifying its application with a commonly…
Paul Ravvich
Mar 23
Managing Large Objects in Hibernate with @Lob : From Direct Use to Lazy Loading
Managing Large Objects in Hibernate with @Lob : From Direct Use to Lazy Loading
Hibernate, a popular ORM framework for Java, provides mechanisms for working efficiently with big objects through @Lob annotation…
Paul Ravvich
Mar 23
About Hibernate At the Gates of Mastery
Latest Stories
Archive
About Medium
Terms
Privacy
Teams