hibernate environment construction and simple addition, deletion and modification
First, we need to import the jar package of hibernate. Under the lib folder, there is a necessary folder to import the jar package inside.
The second step is to create the ORM mapping file under the bean package and put it together with the beans to be mapped. Then we import the constraints. We don't have to memorize them. We can
Under th ...
Posted by Harley1979 on Fri, 28 Jun 2019 15:27:15 -0700
springboot(2): web Integrated Development
The previous article introduced the Spring boot preliminary tutorial: spring boot(1): introduction, to facilitate you to quickly get started and understand the practical Spring boot features; the last part of this article continues to introduce other features of spring boot (some may not be the functions of spring boot system, but some open sou ...
Posted by arfa on Wed, 26 Jun 2019 12:01:47 -0700
Detailed explanation of Hibernate configuration file hibernate.cfg.xml
The starting line of a standard XML file, version='1.0'indicates the version of the XML, encoding='gb2312' indicates how the XML file is encoded
<?xml version='1.0' encoding='Utf-8'?>
Indicates the location of the DTD document where the XML file is parsed. DTD is the abbreviation for Document Type Definition, which is the definition of ...
Posted by colandy on Wed, 26 Jun 2019 10:11:49 -0700
Java Code Optimization Points
Principle of optimization
Code optimization refers to the equivalent transformation of program code (i.e. the result of running a program without changing it). Program code can be either intermediate code or object code. Equivalence means that the result of code running after transformation is the same as that of code running before transfo ...
Posted by maest on Fri, 21 Jun 2019 12:25:08 -0700
Multithreaded synchronization
1.linux uses a multithreaded synchronization method
1) Mutex: When thread A locks mutex variables, thread B is suspended until thread A unlocks them.Note: Conditional variables can be used to increase efficiency when threads are constantly polling to check a condition to determine whether they can operate on data that needs to be s ...
Posted by hongco on Fri, 21 Jun 2019 09:38:21 -0700
Hibernate Principle and Framework Structure to Add, Delete and Amend Query Statements
What is Hibernate?
hibernate is the framework of data access layer. It encapsulates JDBC and is an object-oriented solution for database access.
The role of Hibernate?
Hibernate can access objects directly. Hibernate automatically replaces this access with sql execution, which achieves the purpose of indirect access to the database and simpl ...
Posted by narch31 on Mon, 17 Jun 2019 16:29:33 -0700
Log ic settings for Spring Boot
1. Maven dependence
No additional dependencies need to be introduced, just the starter required by Spring Boot:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
2. Log format
Without modifying the default settings, Spring Boot ...
Posted by bad_goose on Sat, 15 Jun 2019 17:04:11 -0700
Hibernate Introduction Guide
1. When using Hibernate as an orm application, myeclipse is recommended as a development tool.2. Import the corresponding Hibernate jar package into the Lib directory under the Webroot file (webroot - > WEB-INF - > lib)
Notes on jar imports in Hibernate development:(1) Provide a Hibernate jar package download link here, address http://pan ...
Posted by discobean on Sun, 02 Jun 2019 15:30:45 -0700
Hibernate Introduction Guide
1. When using Hibernate as an orm application, myeclipse is recommended as a development tool.2. Import the corresponding Hibernate jar package into the Lib directory under the Webroot file (webroot - > WEB-INF - > lib)
Notes on jar imports in Hibernate development:(1) Provide a Hibernate jar package download link here, address http://pan ...
Posted by frobak on Sun, 02 Jun 2019 15:29:18 -0700
Summary of Spring Boot (6) - - Data Connection Web Reality
The first part talks about Spring Boot data access related knowledge, this article combines the actual project Spring Boot data connection, experience its powerful and fast.
We used the previous simple project demo, jumpable to view, follow the article can be quickly built in 10 minutes (previous article: 1 minute build,web development
The curr ...
Posted by Mantis_61 on Sun, 26 May 2019 11:54:07 -0700