Hibernate Association
1, One to many configuration and lazy loading query 1. One to many 1.1 association refers to the reference relationship...
[Spring Boot] Spring Boot Security REST + JPA + Hibernate + MySQL example | interface security verification and CRUD
This page will introduce examples of Spring Boot Security REST + JPA + Hibernate + MySQL CRUD. When we use Spring Boot t...
[Spring] Pure java for Spring-hibernate integration
First import the corresponding jar package for Spring-hibernate
...
The use of ThreadLocal in Java Concurrent Programming and source code analysis
The use of ThreadLocal in Java Concurrent Programming and source code analysis Create ThreadLocal and its operation Cr...
CGLIB dynamic agent mechanism has been written in all aspects
CGLIB library introduction
The agent provides...
Hibernate Learning (5) Hibernate Many-to-Many Mapping
When it comes to the many-to-many relationship, the most impressive thing is the optional courses in universities.A stud...
Database Middleware - jdbi
Source: https://www.jianshu.com/p/1ee34c858cb9 Java's database uses jdbc natively, and there are many middleware, such...
(Reprint) SpringData JPA advanced - JPA one to many, many to many
Link: https://blog.csdn.net/qq_36662478/article/details/89111437 Primary key generation strategy in JPA   &e...
Three methods of class instantiation
The ultimate purpose of class instantiation is nothing more than to use the properties or methods of class objects. The ...
How do I avoid deadlocks?
When concurrent programs become deadlocked, we often have to restart the application.The best way to solve the deadlock problem is to avoid it. Condit...
Three states of Hibernate object
hibernate has three states: Transient, persistent, detached The following figure shows the state transition of objects in hibernate: Example 1 @Test ...
Write custom parameter validation
This article has been published for more than two months since I left my previous company two months ago (the reason may be at the end of the year, th...
Hibernate 4 + MySQL demonstration of Chinese naming
Recently, there is an opportunity to verify the feasibility of Chinese naming in a given development environment. The source code of the example is as...
Synchronizer for Java Multithread Programming
Synchronizer Solutions are provided for each specific synchronization problem Semaphore Semaphore controls access to shared resources through counters...