<!--the root node of the mapping file--
<!--
Start of Object Relational mapping: The class element represents the mapping of a table in a class and database.
The name attribute specifies the Java fully qualified name of the persisted class (or interface);
The table property specifies the corresponding database table name to map, and if omitted, name as the table name
-
<class name= "Com.hibernate.customer.customer"Table=" "Customer" >
<!--
The object identifier (OID) of the persisted class object and the mapping association of the table's primary key:
The Name property specifies the name of the property in the class as the OID;
Name of the primary key field in the Column property sheet, or name as the field name if omitted
-
<id name= "id" column= "id" >
<!--Specify the object identifier Generator: Class property specifies the category name of the generator--
</id>
<!--
Mappings for normal properties:
Name property: The names of the properties, beginning with lowercase letters;
Column property: The corresponding database field name. If omitted, use name as the field name
Type property: Specifies the type of mapping for Hibernate, and if omitted, automatically matches
-
<property name= "username" column= "username"/>
<property name= "password" column= "password"/>
</class>
Red places are best shown with the path name of the package
Hibernate appears could not parse mapping document from resource error