JDBC for transaction management
JDBC for transaction management
There are four characteristics of a transaction:Atomicity: refers to that the operations contained in a transaction are regarded as a logical unitConsistency: the database is in a consistent state before and after the startIsolation: multiple transactions modified to the database are isolated from each otherThe i ...
Posted by Mark Baker on Wed, 18 Mar 2020 08:30:03 -0700
About PHP + jQuery UI drag floating layer to sort and save to database instance
The PHP + jQuery UI implements the drag floating layer sorting layout and saves the dragged floating layer position sorting results to the database instance.
First, jQuery library and jquery-ui.min.js are introduced, then a drag loading image is placed, and multiple module drag layers are read from the database. Modules and orderlist are used ...
Posted by carlmcdade on Wed, 18 Mar 2020 07:30:21 -0700
CAS single sign on -- custom authentication login strategy
In the previous section, we used a variety of authentication methods of CAS to complete the login authentication in a variety of ways, that is, we mainly used a variety of authentication schemes encapsulated by CAS for us, which can basically meet our multiple needs of authentication. If you still don't know a lot about the multiple authenticat ...
Posted by BlueMeteor on Wed, 18 Mar 2020 06:15:25 -0700
Formal learning linux-14
1. Configure Samba service on the server
The first step is to install samba service through yum warehouse.
The second step is to configure shared resources.
In the process of configuring shared resources, samba service uses password authentication mode by default. The password authentication mode is based on the account information databa ...
Posted by Rother2005 on Wed, 18 Mar 2020 00:01:28 -0700
Installation of Docker Technology Series Multi-Version Mysql 5.6 and Mysql 5.7
Hello, what follows is not exclusive content about MAC, basically related to Java environment and basic technology.So this tutorial is common to both linux systems and macOS, so don't worry.
In the previous post, we found Docker convenient after installing it.Now let's install Mysql, which is often used in development.
MySQL is the most popula ...
Posted by redhair on Tue, 17 Mar 2020 18:51:18 -0700
Default values in dogma
How to set the default value in doctrine2?
#1 building
<?php
/**
* @Entity
*/
class myEntity {
/**
* @var string
*
* @ORM\Column(name="myColumn", type="integer", options={"default" : 0})
*/
private $myColumn;
...
}
Note that this uses SQL DEFAULT, which is not supported for some fields, such as BLOB ...
Posted by rami103 on Tue, 17 Mar 2020 07:45:49 -0700
Getting started with Quartz Job management
1.Job components
Job is actually composed of three parts:JobDetail: used to describe what the Job is doingClass implementing Job: specificJobDataMap: used to provide parameters for Job
JobDataMap can be used in other ways besides usingJobData
2.Job concurrency
By default, no matter whether the last task is finished or not, as long as the s ...
Posted by ethan89 on Tue, 17 Mar 2020 03:53:05 -0700
Read MySQL 5.7 document 11.2 Date and Time Data Types summary
Author: Wei Xinping, the 5th MySQL practical class student of zhishutang, the 10th MySQL optimization class student, now works as a teaching assistant.
Read MySQL 5.7 document 11.2 Date and Time Data Types
MySQL can be divided into five types: date, datetime, timestamp, time, and year. Next, I'd like to introduce you one by one.
DATE type
Store ...
Posted by ludachris on Mon, 16 Mar 2020 21:00:55 -0700
MyBatis: Introduction, first program
Environment description:
jdk 8 +
MySQL 8
maven-3.6.0
IDEA (Editor)
Require mastery before learning:
JDBC
MySQL
Java Foundation
Maven
Junit
Introduction to Mybatis
What is MyBatis
MyBatis is an excellent persistence framework
MyBatis avoids almost all JDBC code and the process of manually setti ...
Posted by evan12 on Mon, 16 Mar 2020 19:22:23 -0700
Mysql database 2: a simple DQL statement
1. Simple query statement (DQL)
Syntax format:
select field name 1, field name 2, field name 3 from table name;
mysql> select ename,empno from emp;
+--------+-------+
| ename | empno |
+--------+-------+
| SMITH | 7369 |
| ALLEN | 7499 |
| WARD | 7521 |
| JONES | 7566 |
| MARTIN ...
Posted by MortimerJazz on Mon, 16 Mar 2020 08:28:17 -0700