Since microservices have become popular, teams are trying to split their monolithic application into a set of small, independent, and highly-scalable microservices. In theory, that often seems like an easy task. You only need to follow the key principles of domain-driven design, identify the bounded contexts in your application, and extract each of them as

Read More

Join the chat on YouTube. Contents1 JPQL vs. Criteria vs. Native Queries2 Live Online Workshops3 Question of the Week4 This week’s tutorials4.1 Blog4.2 YouTube JPQL vs. Criteria vs. Native Queries With JPQL and native SQL queries, Hibernate supports 2 query languages that you can use to search data in your database. In addition to that,

Read More

Hibernate needs to ensure that all tables referenced in a query are up to date before executing the query. That means it has to flush all pending changes for these tables before it runs the query. Otherwise, the database would process the query on an outdated data set and return wrong results. Hibernate not only

Read More

Join the chat on YouTube. Contents1 Auditing with Hibernate Envers2 Live Online Workshops3 Question of the Week4 This week’s tutorials4.1 Blog4.2 YouTube Auditing with Hibernate Envers In today’s stream, we will talk about another often requested topic: Writing and managing an audit log with Hibernate Envers. I will show you how to set up Hibernate

Read More

To connect your persistence layer to your database, you need to configure a data source or provide the JDBC connection driver, URL, and login information to Hibernate directly. In addition to that, Hibernate needs to know the database-specific dialect it shall use to generate the SQL statements. Hibernate can detect the dialect based on the

Read More

Subscribe on YouTube to not miss any video. Contents1 Soft Deletes2 Question of the Week3 This week’s tutorials3.1 Blog3.2 YouTube Soft Deletes During last week’s stream, I was asked to show how to implement soft deletes with Hibernate. So, that will be the topic of this week’s stream. In addition to the stream, you might

Read More

Subscribe on YouTube to not miss any video. JSON Mappings The mapping of associations seems easy but there are several pitfalls you should avoid. Links mentioned in the video: How to use PostgreSQL’s JSONB data type with Hibernate PostgreSQL documentation: JSON Types PostgreSQL documentation: JSON Functions and Operators If you want to learn more about

Read More

If you want to implement a reactive application, you not only need to adapt your way of thinking and switch to reactive libraries for your business layer. You also need to access your database in a reactive way. One way to do that is to use Hibernate Reactive. It’s based on Vert.X and implements the

Read More