An article on understanding struts 2 + hibernate + spring and ssh integration framework

This article will explain based on Maven project. If you don't understand maven, you can refer to the previous article published   Rely on the downloaded Maven website: https://mvnrepository.com/   Struts2   What is struts? A web application framework designed based on mvc pattern is an upgraded version of struts 1, which ...

Posted by Akenatehm on Sun, 31 Oct 2021 02:41:41 -0700

hibernate Association

1, One to many association configuration 1. Association refers to the reference relationship between classes. If class A is associated with class B, the referenced class B will be defined as an attribute of class A. 2. One to many association: For example: order and order item. An order has multiple order items;         ...

Posted by bosco500 on Thu, 21 Oct 2021 08:25:00 -0700

hibernate Level 2 Cache

1. What kind of data needs to be cached 1. Data rarely modified 2. Less important data, allowing occasional concurrent data 3. Data that will not be accessed concurrently 4. Reference data refers to constant data that provides reference for use. It has a limited number of instances, and its instances are referenced by instances of many othe ...

Posted by albatros21 on Wed, 20 Oct 2021 14:05:01 -0700

hibernate Association

1, One to many association configuration Database: master table, slave table, associated by foreign key Class: class A{ B b; } class B{ } Example: order and orderItem order entity class package com.sjy.entity; import java.util.HashSet; import java.util.Set; public class Order { // create table t_hibernate_order // ( // order_id i ...

Posted by dale282 on Mon, 18 Oct 2021 10:38:11 -0700

mybatis learning summary

Be careful, there are pits 1.mybatis enables transactions by default. If you add, delete, or modify a transaction, you need to submit the transaction manually. 2. After integration with spring, there is no need to process transactions manually. Related blog posts 1. Use of mybatis MyBatis use 2. mybatis parameter transfer mybatis is t ...

Posted by warptwist on Mon, 11 Oct 2021 12:25:19 -0700

JPA--SpringBoot -- custom SQL -- Integration / method / how / how / instance / example / actual combat / tutorial -- Spring Data JPA

Original website: JPA--SpringBoot -- custom SQL -- Integration / method / how / how / instance / example / actual combat / tutorial -- spring data JPA_ CSDN blog brief introduction explain         When JPA customizes SQL, all additions, deletions and queries are annotated with @ Query, except that the statements inside a ...

Posted by shinichi_nguyen on Thu, 07 Oct 2021 14:45:46 -0700

Section IV - Interpretation of configuration files

1, scope interpretation scope has two values, singleton and prototype single is the default value, which means that the UserDaoImpl class retrieved from the xml is the only one each time, and the class is created when the app object is created //Test code ApplicationContext app = new ClassPathXmlApplicationContext("applicationContext.xml"); u ...

Posted by w00kie on Sat, 02 Oct 2021 16:49:34 -0700

Learn spring 5 architecture from scratch -- declarative transactions

affair Transaction is very important in the project development process. It involves the problem of data consistency, which should not be careless!Transaction management is a necessary technology in enterprise application development to ensure data integrity and consistency. Transaction is to treat a series of actions as an independent unit o ...

Posted by danwguy on Fri, 01 Oct 2021 14:24:27 -0700

2021-09-26 Spring5 declarative transaction control

Spring 5 declarative transaction control 1. Programming transaction control related objects 1.1 PlatformTransactionManager The PlatformTransactionManager interface is the transaction manager of spring, which provides our common methods of operating transactions. methodexplainTransactionStatus getTransaction(TransactionDefination definat ...

Posted by awared on Sat, 25 Sep 2021 14:15:51 -0700

java learning notes

1, Object oriented 1. Object oriented Object Oriented (OO) is also called Object Oriented thought. It is not only a programming thinking, but also a way of thinking. The basic idea is the three characteristics of object-oriented, inheritance, encapsulation and polymorphism. 2. Cumulative sum object Class: is the abstraction of object! ...

Posted by devarishi on Wed, 22 Sep 2021 21:30:12 -0700