Hibernate 5--3. Mapping Relations
1. Review of the relationship between tables (emphasis)
1.1. One-to-many
(1) Classification and commodity relationship. There are many commodities in a classification. A commodity can only belong to one classification.
(2) One-to-many relationship between customers and contacts
- Customer: With the company business contacts, Baidu, Sina, ...
Posted by mikebr on Sun, 14 Apr 2019 17:21:32 -0700
Packaging and Use of Bootstrap-fileinput Components
introduce
Through this article, you can learn how to encapsulate or develop a front-end component, and learn how to use Bootstrap-fileinput component. It is easier and more convenient to use after encapsulation.
BaseFile is an attachment upload component based on Bootstrap-fileinput in AdminEAP framework. It supports supporting multi-fi ...
Posted by kuliksco on Sun, 14 Apr 2019 15:33:33 -0700
Oracle to MySQL Database Migration--Primary Key Generation Policy Replacement
A major difficulty in migrating Oracle database to MySQL database is the replacement of the primary key generation strategy. If Oracle's Sequence mechanism is used in previous programs to achieve the primary key self-increment, it is necessary to use TableGenerator for equivalent replacement in MySQL.
When replacing, there are three main area ...
Posted by phpnewbie8 on Fri, 12 Apr 2019 21:27:31 -0700
How to implement transaction management in Controller layer?
stay spring aop transaction management We found that we implemented transaction management in service layer.
Now there are the following scenarios. Let's discuss how to achieve them.
Controller A, Controller B, Controller C... Depending on ServiceA and ServiceB, the save d operation of the above-mentioned Controller needs to synchronize the ...
Posted by BuzzLY on Wed, 10 Apr 2019 15:48:31 -0700
Build a catalogue for your blog posts
Build a catalogue for your blog posts
1. Write in front
This should be seen in the past few days. Hibernate User Manual Speaking of it.
This Handbook is really long, and it's all in English. For me who just passed CET-4, it's really hard to read. This "laborious" performance is that I often look at it and forget where I see it. The im ...
Posted by SirChick on Tue, 09 Apr 2019 13:03:31 -0700
hibernate Series Notes (1) - - hibernate Addition, Deletion and Amendment
Hibernate additions, deletions and modifications
1. First, we need to know what Hibernate is.
Hibernate is a lightweight ORMapping object. Mainly used to achieve the mapping between Java and database tables, in addition to providing data query and data acquisition methods.
It can greatly reduce the time of manual use of SQL and JDBC to process ...
Posted by Lamez on Mon, 08 Apr 2019 10:36:34 -0700
Hibernate Learning Notes 2
Hibernate Learning Notes 2
1. summary
This paper mainly introduces how to deal with the following problems:
Mapping of Enumerated Types
Mapping of Time Type
Custom Property Mapping in JPA
Automatic generation parameters (such as insertion time of automatically generated data, update time of automatically generated data)
2. Domain Model
1.1. B ...
Posted by asuamol on Sun, 07 Apr 2019 15:33:30 -0700
hibernate Composite Primary Key Annotation
Three approaches are provided in the documentation of the Hibernate annotation specification:
1. Annotate the component class as @Embeddable and the attribute of the component as @Id.
2. Annotate the attribute of the component as @Embeddable;
package com.cmh.beans;
import javax.persistence.Embeddable;
import java.io.Serializab ...
Posted by dreams4000 on Mon, 01 Apr 2019 00:54:30 -0700
Spring MVC Learning Notes (2) Processor Interceptor Details
The processor interceptor of Spring Web MVC is similar to the Filter filter Filter in Servlet development, which is used to preprocess and post-process the processor.
Interceptor application scenarios:
1. Logging: Logging requests for information for information monitoring, information statistics, computing PV (Page View), etc.
2. Privilege ...
Posted by subhuman on Thu, 28 Mar 2019 07:21:28 -0700
Spring transaction management (details + examples)
Reprinted from: http://blog.csdn.net/trigl/article/details/50968079
Before writing this blog, I first read Spring in action, and then read some articles about Spring transaction management on the internet. I don't feel that they are complete. Here I will summarize the knowledge of the book and the Internet about the transaction. The re ...
Posted by Rongisnom on Tue, 26 Mar 2019 17:48:29 -0700