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.