I'm just a porter of knowledge. (reproduced)<?xml version= "1.0"? ><! DOCTYPE hibernate-Mapping Public"-//hibernate/hibernate Mapping DTD 3.0//en" "Http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd" ><!-- generally do not configure, the default can be used. default-cascade= "None": The default cascading style, with tables linked to tables. default-lazy= "true": Default lazy Load-->class>: Defines a persisted class using the class element. Name= "Cn.javass.user.vo.UserModel": The Java fully qualified name of the persistence class;= "Tbl_user": corresponding database table name; mutable= "true": The default is true, the application cannot be updated or deleted when set to false; dynamic-insert= "false": The default is False, dynamically modifying those fields that have changed, without modifying all the fields; dynamic-update= "false": False to insert a non-null value field dynamically; Select-before-update= "false": The default is False, make a query before modifying, compare with the user's value, the change will be really updated; optimistic-lock= "version": Default to Version (check version/timestamp field), Value: All (check all fields), dirty (check only modified fields), none (not using optimistic locking), this parameter is mainly used to handle concurrency, each value has a fixed and unique version, the version is up to date to perform operations;--><className= "Cn.javass.user.vo.UserModel" table= "Tbl_user" dynamic-insert= "true" dynamic-update= "true" optimistic-lock= " Version "><!--<id>: Defines the mapping of this property to the primary key field of the database table. Name= "UserId": The name of the identity attribute; column= "UserId": The name of the table primary key field, if not filled in with name;--><id name= "UserId" ><!--<generator>: Specifies what the primary key is generated from, the recommended use of uuid,assigned refers to the user manually fill in. --><generatorclass= "UUID"/></id><!--<version/>: Use version control to handle concurrency, to turn on optimistic-lock= "version" and dynamic-update= "true". Name= "Version": the property name of the persisted class, column= "version": Specifies the name of the field that holds the version number;--><version name= "Version" column= "version"/><!--<property>: Defines a persisted JavaBean style property for the class. Name= "Name": Identifies the name of the attribute, beginning with a lowercase letter;= "Name": The name of the table primary key field, if not filled with name; Update= "true"/insert= "true": The default is true to indicate that it can be updated or inserted;--><property name= "name" column= "name"/><property name= "sex" column= "sex"/><property name= "age" Column= "Age"/><!--Component Mapping: Package multiple attributes together when an attribute is used, it is used to make the class less granular. <component name= "attribute, here refers to object" ><property name= "name1" ></property><property name= "name2" ></ property></component>--><!--<join>: An object maps multiple tables, which must be placed in all <property>after that. <join table= "tbl_test: Child table name" ><key column= "UUID: Child table primary Key" ></key><property name= "name1: Object Properties" column= " Name: Child table Field "></property></join>--></class>How to write an SSH project (ii) Hibernate.xml configuration