An exception occurs in nhib.pdf: unknown entity class: EDP. provider. User

Source: Internet
Author: User

This error occurs during debugging:

Mappingexception: unknown entity class: EDP. provider. User

Ing error. unknown entity class user.

I thought it was a user ing file configuration error, but confirm the user's ing file user. HBM. XML is correct and has already been embedded into the project. This is not the problem here, So Hibernate is the most likely one. cfg. there is a problem with mapping in XML. When you open it, it turns out to be blocked:

My hibernate. cfg. xml file:

<? XML version = '1. 0' encoding = 'utf-8'?>
<Hibernate-configuration xmlns = "urn: nhibernate-configuration-2.0">

<! -- Isessionfactory instance -->
<Session-factory>
<! -- Properties -->
<Property name = "connection. provider"> nhib.pdf. Connection. driverconnectionprovider </property>
<Property name = "show_ SQL"> true </property>
<Property name = "dialect"> nhib.pdf. jetdriver. jetdialect, nhib.pdf. jetdriver </property>
<Property name = "connection. driver_class"> nhib.pdf. jetdriver. jetdriver, nhib.pdf. jetdriver </property>
<Property name = "connection. connection_string"> provider = Microsoft. Jet. oledb.4.0; Data Source = EDP. website/appdata/bbsdata. mdb; persist Security info = false </property>

<! -- <Mapping Assembly = "EDP. provider"/> -->

</Session-factory>
</Hibernate-configuration>

Set <mapping Assembly = "EDP. provider "/> to open the row, it means that EDP is mapped. all classes under the provider, because I put the data layer and entity class in a DLL project "EDP. "provider", so you only need to specify the Eding EDP. all classes under the provider are OK.

 

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.