Get the App
SLTechnology News&Howtos  ›  Development  › 

Introduction to basic configuration and Mapping types of Hiebernate

Shulou Source: shulou.com Published: 2022-06-03 17:05:06 11月13日 Update

This article introduces the relevant knowledge of "introduction to the basic configuration and mapping types of Hiebernate". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Com.mysql.jdbc.Driver jdbc:mysql://localhost/hibernate root 123456 20 true 50 23 false True gbk org.hibernate.dialect.MySQLDialect

Detailed explanation of mapping elements in configuration file

The mapping of object relationships is illustrated by an XML document. Mapping documents can be generated using tools such as XDoclet,Middlegen and AndroMDA. Let's start with an example of mapping, and the code for the mapping file is as follows.

Tags: Identity attribute type data database file generation configuration object identifier field instance element name character agent interface policy algorithm sequence Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Tech Info Shulou Information Microsoft Apple