Hibernate appears could not parse mapping document from resource error

Source: Internet
Author: User

<!--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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.