Hibernate 5 Introduction
Hibernate 5 Introduction
Articles Catalogue
Hibernate 5 Introduction
Preface
Environmental description
Configuration process
1. Database creation
2. Project Construction
3. Configure hibernate.cfg.xml
4. Mapping Relations
4.1 xml Mapping
4.2 Annotation Mapping
5. Create SessionFactory
6. Unit t ...
Added by freedmania on Sat, 10 Aug 2019 17:22:30 +0300
Minimalist Code Artifact: Lombok Use Tutorial
From: https://mp.weixin.qq.com/s/7HebsMsH21LuDWPbHg6UBw
Lombok is a magical java class library. It can automatically generate annotations to annoy annoying Getter s and Setter s in java beans. It can also automatically generate logger, ToString, HashCode, Builder and other java features or functions ...
Added by Griff1324 on Fri, 09 Aug 2019 05:42:25 +0300
JPA Multi-table Complex Query
In recent work, because only hibernate+jpa is required to interact with database, in simple queries, jpa inherits CrudRepository interface, and then uses jpa method naming specification to query jpql. However, in complex queries, it is necessary to inherit jpa Specification Executor interface and use Specification to perform complex queries. In ...
Added by chenci on Sat, 03 Aug 2019 12:15:26 +0300
Hibernate Learning Notes 7 (Configuration and Operation of One-to-Many Relations)
Relationships between database tables and tables
This one was written in mysql, and here it is written again at https://blog.csdn.net/qq_40817827/article/details/90637303.
One-to-many relationship
What kind of relationship belongs to one-to-many?
A Department corresponds to multiple employees, and ...
Added by griffith on Fri, 02 Aug 2019 06:30:39 +0300
Introduction to Lombok usage (common annotations)
Catalog
@Data
@NonNull
@Getter & @Setter
@ToString
@EqualsAndHashCode
@NoArgsConstructor, @RequiredArgsConstructor, @AllArgsConstructor
lombok It is a very magical java class library. It can use annotations to automatically generate annoying Getter s and Sett ...
Added by IgglePiggle on Tue, 30 Jul 2019 18:14:00 +0300
Performance Hibernate Mass Storage Data Optimization
Have a good laugh
Tell my mother that these days are very depressed and in a bad mood.
My mother said, "If I don't give you the money, you'll go out for a few days!"
I immediately laughed and said, "OK, OK!"
Mom: "Happy!"
Me: "Well, Mom, get the money quickly!"
Mom: You're all happy. What else do I ...
Added by maxonon on Tue, 16 Jul 2019 23:14:23 +0300
How to Use Spring IO and Spring Boot
Spring IO Platform
Spring IO Platform solves the problem of version compatibility between Spring Framework and the introduction of third-party libraries, which configures most commonly used java class libraries.
To use Spring IO Platform, simply add:
<dependencyManagement>
<dependencies>
<dependenc ...
Added by google_man2000 on Wed, 10 Jul 2019 01:15:56 +0300
Hibernate's SQLQuery and Query placeholder parameters
Hibernate supports SQLQuery (sql statements related to specific database platforms) and Query (hql) query mode, as well as Criteria object query mode.
SQLQuery
1. Query results are mapped to map,: param parameterization
public List<Map<String, Object>> findMapBySql(String sql, Map<String, Object> params) {
SQLQuery s ...
Added by smallflower on Sun, 07 Jul 2019 21:59:00 +0300
RocketMQ--RocketMQ retry mechanism
RocketMQ Retry Mechanism
Message retries are divided into two types: retries for Producer sending messages and retries for Constumer consuming messages.
1. Producer End Retry
Producer-side retry refers to a failure of Producer to send a message to MQ, such as a failure of producer to send a message to MQ due to network reasons.
Take a look at t ...
Added by jrolands on Mon, 01 Jul 2019 19:28:42 +0300
SpringBoot__JSR303 Verifies the Input Parameters
Program Tool Class:
package com.liutao.utilitys;
import org.springframework.http.HttpStatus;
import org.springframework.validation.BindingResult;
import org.springframework.validation.ObjectError;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* Parametric Verification Tool Class
*
* @author LIUTAO
* @version ...
Added by lip9000 on Sat, 29 Jun 2019 22:56:39 +0300