排序
No XML Spring and Hibernate Integration
No XML Spring and Hibernate Integration,Back in the pre Spring 3.1 days, we had to configure each and every bean into one of the spring configuration files which only happens to be...
Introducing JPA and Hibernate
Introducing JPA and Hibernate,In the IT world linked to Java, especially in the IT consultancy, non-professionals often associate terms such as Hibernate, JPA, like a programming l...
Eliminate SpringBoot Hibernate N+1 Queries
Eliminate SpringBoot Hibernate N+1 Queries,Hibernate is a famous ORM for Java applications. In this article, I show you how to improve performance eliminating the Hibernate N+1 Que...
Hibernate Optimistic locking and Pessimistic locking
Hibernate Optimistic locking and Pessimistic locking, Optimistic locking When two threads are going to update the same data at the same time, conflict can happen. There are two opt...
Hibernate – OneToOne, OneToMany, ManyToOne and ManyToMany
Hibernate - OneToOne, OneToMany, ManyToOne and ManyToMany,Through JPA annotations when we are using Hibernate, we are able to manage relationships between two tables as if objects ...
Database schema changes with Hibernate and Spring Boot
Database schema changes with Hibernate and Spring Boot, Target audience This article has been written for readers who have experience with Java, Hibernate and Spring Boot. All exam...
A guide to accessing databases in Java
A guide to accessing databases in Java,You can use this guide to discover, understand, and select the right Java library to access a database, like MySQL, Postgres, Oracle - or any...
Best Possible Hibernate Configuration for Batch Inserts
Best Possible Hibernate Configuration for Batch Inserts, Problem In general, the hibernate entities (domains) are set to use database sequence as Id generator. In such a case, for ...
The Cake Mix Metaphor for Frameworks
The Cake Mix Metaphor for Frameworks,A great video was brought to my attention on Twitter recently. It's a lightning talk by @CristinGorman that she gave at JavaZone in 2011. The t...
@Transient com JPA: 3 coisas que você não deve fazer!
@Transient com JPA: 3 coisas que você não deve fazer!,Usar @Transient com JPA pode parecer fácil, mas existem 3 coisas que se você fizer, podem deixar seu código confuso. Apre...
@OneToMany relations in Hibernate and its perils
@OneToMany relations in Hibernate and its perils,Recently, I had trouble persisting an object with Hibernate. I would like to depict my journey along the well-known example of docu...