Java business verification tool implementation

1, Background In our daily interface development process, we may have to face some slightly more complex business logic code writing. Before executing the real business logic, we often need to carry out a series of pre verification work, which can be divided into parameter validity verification and business data verification. Parameter validity ...

Posted by mahenderp on Wed, 17 Jun 2020 04:34:10 +0200

Hibernate in the Java Framework

Start Hibernate from scratch: (Four actual combat codes, step by step, notes and learning content in the code notes, for use by students with a certain foundation) First: Basic (Build) Basic Hibernate development steps: 1. Import the jar package (find the required jar package in the file of hibernate-release-5.0.7.Final\lib) 2. Write mapping ...

Posted by m3rajk on Mon, 08 Jun 2020 20:17:25 +0200

(Reprint) cascade type and FetchType of JPA

Link: https://www.jianshu.com/p/b8595aee06ac   CascadeType Summary Cascade refers to cascade operation, which is annotated in hibernate configuration @OneToOne,@OneToMany,@ManyToMany , @ ManyToOne properties Cascading is often used when writing triggers. The function of triggers is to ensure that the data in the associ ...

Posted by nykoelle on Fri, 08 May 2020 11:58:32 +0200

hibernate -- HQL query summary

hibernate -- HQL query summary HQL overview: Simple query of HQL Alias query for HQL: HQL polymorphic query: Sort query for HQL: Paging query for HQL: HQL retrieves a single object: Condition query of HQL: HQL uses aggregate functions: HQL group statistics: Projection query of HQL: HQL ...

Posted by JakeJ on Sun, 26 Apr 2020 16:09:42 +0200

get and load queries in Hibernate Framework

Original link: http://www.yiidian.com/hibernate/hibernate-get-load.html 1. Demonstrate the basic use of get and load methods /** * Show basic object query * @author http://www.yiidian.com * */ public class Demo { /** * get()Method: query an object */ @Test public void test1(){ Session session = HibernateUtil.getSession(); Transa ...

Posted by NZ_Kiwis on Sun, 05 Apr 2020 22:37:01 +0200

Use HashMap to simulate a Session cache (simple version)

This article records the characteristics of the first level cache in Hibernate. Details of L1 cache: what operations will be directed to 1. Level cache put data save,update,saveOrUpdate,load,get,list,iterate,lock 2. What operation will fetch data from the first level cache.get / load / list get / load will first get from the first level cache. ...

Posted by bluestar on Sat, 04 Apr 2020 15:28:27 +0200

Using hibernate to link MySql to add data

Development tool: MyEclipse 2013, database: MySql 1. First, create a database in the database. The database tool I use is sqllog Create the following database: Open MyEclispe after database creation 2. Create Web Project 2.1: Item 1: Guide Package The following packages need to be imported:(these bags can be found on ...

Posted by DESIGNGRAPHY on Thu, 02 Apr 2020 05:38:07 +0200

Java Monomer Application-Architecture Mode-03.Design Mode-01.Factory Mode

Original address: http://www.work100.net/training/monolithic-architecture-design-patterns-factory-pattern.htmlMore Tutorials: Beam Cloud - Free Course Factory Mode Sequence Number Intratext chapters video 1 Summary - 2 Realization - See the navigation section above for reading 1. Overview Factory Pattern is one of the most common des ...

Posted by lukegw on Wed, 11 Mar 2020 23:13:53 +0100

Spring Data Jpa: use and source code analysis of Spring Data Jpa

Spring Data Jpa (2): use and source code analysis of Spring Data Jpa 1, Overview of Spring Data JPA 1.1 Spring Data JPA 1.2 relationship between Spring Data JPA, JPA and hibernate 2, Getting started 2.1 integrating Spring Data JPA and Spring 2.2 use JPA annotation to configure mapping relationship ...

Posted by ted_chou12 on Tue, 03 Mar 2020 09:33:05 +0100

[SSH] SSH's hibernate framework: initial knowledge of Hibernate

What is Hibernate: Hibernate is an open-source object relational mapping framework, which encapsulates JDBC with very lightweight objects. It establishes the mapping relationship between POJO and database tables. It is a fully automatic ORM framework. Hibernate can automatically generate SQL statement ...

Posted by myshoala on Thu, 06 Feb 2020 08:28:54 +0100