Spring boot and Hibernate validate verify data

Spring boot combined with hibernate validate verification data learning Hibernate validate data verification dependency has been introduced into the web Start dependency of spring boot. As long as the web Start dependency of the project depends, there is no need to introduce dependency. Dependency introduction <dependency> <grou ...

Added by tsilenzio on Sat, 23 Oct 2021 10:09:48 +0300

spring transaction usage

1. Enable transaction management: enables transaction management Add the @ EnableTransactionManagement annotation to the spring configuration class @EnableTransactionManagement public class MainConfig4 { } principle @The EnableTransactionManagement annotation will enable spring to automatically manage transactions. With this annotation, ...

Added by the_oliver on Thu, 14 Oct 2021 22:43:45 +0300

Paging queries for javax.persistence.Query and javax.persistence.EntityManager use

javax.persistence.Query and javax.persistence.EntityManager are both interfaces published by JAP and API s for object persistence. The EntityManager interface is used to interact with the persistence context. An EntityManager instance is related to the persistence context. A persistence context is a set of entity instances in which the identit ...

Added by xerodefect on Tue, 21 Sep 2021 12:45:05 +0300

Learning summary on September 1, 2021

What is the difference between factory mode and DI container In fact, the most basic design idea of DI container bottom layer is based on factory mode. DI container is equivalent to a large factory class, which is responsible for creating objects in advance according to the configuration (which class objects to create and which other class obj ...

Added by Lucidnight on Thu, 02 Sep 2021 03:53:42 +0300

Three ways of querying hibernate

There are three main query modes common to hibernate: HQL, QBC (named query), and using native SQL query (SqlQuery) HQL Query * HQL (Hibernate Query Language) provides a rich and flexible way of querying, and using HQL for querying is also Hibernate's official recommended way of querying. * HQL is very similar in syntax structure to ...

Added by schoi on Fri, 10 Jul 2020 18:19:06 +0300

[Spring] Pure java for Spring-hibernate integration

First import the corresponding jar package for Spring-hibernate Then prepare the file for the database connectionHibernate.propertiesAlsoJdbc.properties Hibernate.propertiesFile: Configure the hibernate dialect and automatic table building hibernate.dialect=org.hibernate.dialect.H2Dialect hibernate.hbm2ddl.auto=create Jdbc.propertiesFi ...

Added by Master_Phantom on Wed, 08 Jul 2020 17:41:09 +0300

Spring Boot Task Scheduling

2.1.12 Timing Tasks The Spring framework comes with task scheduling capabilities that are like a lightweight Quartz and are easy to use without relying on other JAR packages. Simply add @EnableScheduling to the project master startup class to turn on task scheduling @SpringBootApplication @EnableScheduling public class LearnApplication { p ...

Added by Desbrina on Mon, 15 Jun 2020 21:10:56 +0300

R-Breaker Strategy for Commodity Futures

1. Summary The R-Breaker strategy was developed by Richard Saidenberg and published in 1994.After that, it was ranked one of the top 10 most profitable trading strategies by Futures Truth magazine in the United States for 15 consecutive years.Compared with other strategies, R-Breaker is a combination of trend and reversal.Not only can you capt ...

Added by maltech on Thu, 09 Apr 2020 06:00:53 +0300

Spring integrates spring MVC and hibernate

The previous article used maven to build a web environment, which records how to use spring to integrate spring MVC and hibernate, that is, spring + spring MVC + Hibernate framework integration.   Step 1: configure spring first Configure the spring configuration file applicationContext.xmls 1 <?xml version="1.0" encoding="UTF-8"?> 2 & ...

Added by HHawk on Fri, 03 Apr 2020 22:00:59 +0300

How to expand jBPM to realize "abnormal" requirements

If the requirements are "abnormal", we can try to extend jBPM, which is easy to be extended, such as event listener, custom activity, Java code activity, etc. Suppose we need to customize the query of the task here, and use multiple attributes as the query criteria. In order to implement this function in the current task ...

Added by Jennie on Fri, 20 Mar 2020 18:37:42 +0200