Home  >  Article  >  Java  >  Summary of courses on mapping files

Summary of courses on mapping files

伊谢尔伦
伊谢尔伦Original
2017-06-13 09:30:301656browse

This article mainly introduces the basic class mapping and object relational mapping of Hibernate mapping in detail. It is of great practical value. Friends who need it can refer to it and recall some of the things we did when we didn’t learn ssh. When we created the database tables, first of all It is a database modeling E-R diagram, and then the relationship model is established through the entity model, and then the corresponding tables are established. There are three types of relationships between entities, one-to-one, one-to-many (or many-to-one), and many-to-many. Now, if we want to map the corresponding table based on the class, we can only map the database table through the relationship between classes and mapping files. We learn UML modeling. There are five relationships between classes, inheritance, implementation, association, dependency, aggregation/combination. The same is true for the relationship between entity classes in hibernate. We have implemented the code corresponding to different relationships. I am very familiar with it, so I am reviewing the knowledge about entity classes. The essence of Hibernate is Object Relational Mapping. ORM realizes saving object data into the database. In the past, we operated on the relational table and performed tasks such as addition, deletion, modification and query. Now we no longer perform

# on the relational table.

##1. 10 recommended courses on mapping relationships

Summary of courses on mapping files

Introduction: This article mainly introduces the basic class mapping and object relational mapping of Hibernate mapping in detail. It is of great practical value. Friends in need can refer to it and recall some of the things we did when we didn’t learn ssh. When we created the database tables, the first step was to build the database. Model the E-R diagram, then build the relationship model through the entity model, and then create the corresponding table. There are three types of relationships between entities, one-to-one, one-to-many (or many-to-one), and many-to-many. Now, if we want to map the corresponding table based on the class, we can only map the database table through the relationship between classes and mapping files. We...

2. Detailed example code of Mybatis mapping file

Summary of courses on mapping files

##Introduction: This article mainly introduces the detailed explanation of Mybatis mapping file examples. Friends in need can refer to

3.

xml parsing tool kit Xstream Detailed explanation of the sample code

Summary of courses on mapping files##Introduction: Simplified API; No mapping files; High performance, low memory usage ; Clean XML; No need to modify objects, supports internal private fields; No need for setter/getter methods, final fields; Provides serialization interface; Custom conversion type strategy; Detailed error diagnosis;

4.

In-depth introduction to Mybatis series (9)---Powerful dynamic SQL

Summary of courses on mapping files# #Introduction: The previous article "In-depth introduction to Mybatis series (8)---mapper mapping file configuration select, resultMap" briefly introduced the query of mybatis. So far, CRUD has been explained. This article will introduce the powerful dynamic SQL of mybatis. So, here comes the question: What is dynamic SQL? What does dynamic SQL do? With the traditional method of using JDBC, I believe that when you combine complex SQL statements, you need to splice them together. If you don't pay attention, even if you miss a space, it will lead to errors

##5. In-depth introduction to Mybatis series (8)---mapper mapping file configuration select, resultMap

Introduction : The previous article "Mybatis series in simple terms (7)---mapper mapping file configuration insert, update, delete" introduced the usage of insert, update, and delete. This article will introduce the usage of select and resultMap. Select is undoubtedly our most commonly used and most complex one. Mybatis can help us perform advanced mapping well through resultMap. Let's start to look at the usage of select and resultMap: FirstSummary of courses on mapping files

6. Introduction to Mybatis series (7)---mapper mapping file configuration insert, update, delete

Summary of courses on mapping files

Introduction: The previous article "In-depth introduction to Mybatis series (6)---Introduction and configuration of objectFactory, plugins, mappers" briefly introduces mybatis The configuration comes to an end. So starting from this article, we will introduce the configuration of mapper mapping files. This is one of the cores of mybatis and must be learned well. In the mapper file, with mapper as the root node, the element nodes that can be configured below are: select, insert, update, dele

7. Introduction to the three major java frameworks

Summary of courses on mapping files

Introduction: When using jsp servlet for web development, there is a web.xml mapping file. There is a mapping tag inside which is used for file mapping. When you enter the URL in the browser, the file will be mapped to a JAVA file according to the name you wrote. According to the content written in the java file, it will be displayed on the browser, which is a web page.

8. Use homestead to configure the laravel development environment, but when setting the mapping folder, it is not the location I set in the configuration file

Introduction: Use homestead to configure the laravel development environment. The vagrant up command runs normally, but when setting the mapping folder, it is not in the location I set in the configuration file. Please help me. Below are two codes. The problem is that the folder I set does not match the configured folder...

9. Python multi-process communication Queue and Pipe , Value, Array instances

Introduction: This article mainly introduces Python multi-process communication Queue, Pipe, Value, Array instances. Queue and pipe are used to transfer between processes. Message, Value + Array are methods of sharing memory mapped files in python. Friends who need it can refer to

[Related Q&A recommendations]:

mysql - mybatis dynamic sql returns a List encapsulated class error and seeks a solution

Programmer - C++: How to search for a specific "string" from a string pointer and process the newline character?

java - hibernate many-to-many problem

php - Use homestead to configure the laravel development environment, but I was not there when setting the mapping folder The location set in the configuration file

The svn warehouse is transferred to git, what should I do if the account is not completely mapped

The above is the detailed content of Summary of courses on mapping files. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn