如何解析org.hibernate.hql.ast.QuerySyntaxException:未映射申请者
我有如下hibernate配置文件如何解析org.hibernate.hql.ast.QuerySyntaxException:未映射申请者,hibernate,Hibernate,我有如下hibernate配置文件 en<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
en<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
<property name="hibernate.connection.password">postgres</property>
<property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/mining</property>
<property name="hibernate.connection.username">postgres</property>
<property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
<property name="hibernate.current_session_context_class">thread</property>
<mapping resource="../WEB-INF/mams-hibern.xml"></mapping>
</session-factory>
</hibernate-configuration>
en
org.postgresql.Driver
博士后
jdbc:postgresql://localhost:5432/mining
博士后
org.hibernate.dialogue.PostgreSqlDialogue
线
mams-hibern.xml包含如下配置的映射文件
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource"><ref bean="dataSource" /></property>
<property name="mappingResources">
<list>
<value>nic/mams/model/ApplicantHistory.hbm.xml</value>
<value>nic/mams/model/ApplicantAddressHistory.hbm.xml</value>
<value>nic/mams/model/ApplicantContactHistory.hbm.xml</value>
<value>nic/mams/model/ApplicantLeases.hbm.xml</value>
<value>nic/mams/model/GeneratedChallan.hbm.xml</value>
<value>nic/mams/model/OffenderType.hbm.xml</value>
<value>nic/mams/model/OffenceDetailRule.hbm.xml</value>
<value>nic/mams/model/TemperoryAppNotes.hbm.xml</value>
<value>nic/mams/model/TemperoryFilePath.hbm.xml</value>
<value>nic/mams/model/OtherDocuments.hbm.xml</value>
<value>nic/mams/model/OffenceSubactsRules.hbm.xml</value>
<value>nic/mams/model/OffenceActRules.hbm.xml</value>
<value>nic/mams/model/Vehicles.hbm.xml</value>
<value>nic/mams/model/ApprovedMajorMineral.hbm.xml</value>
<value>nic/mams/model/GoogleImage.hbm.xml</value>
<value>nic/mams/model/PasswordHistory.hbm.xml</value>
<value>nic/mams/model/LeaseTransfer.hbm.xml</value>
<value>nic/mams/model/TransferApplicantCompany.hbm.xml</value>
<value>nic/mams/model/MailSettings.hbm.xml</value>
<value>nic/mams/model/LeaseCompanyAddress.hbm.xml</value>
<value>nic/mams/model/FinancialYear.hbm.xml</value>
<value>nic/mams/model/IncomeTax.hbm.xml</value>
<value>nic/mams/model/AdditionalCharge.hbm.xml</value>
<value>nic/mams/model/MenuPrivileges.hbm.xml</value>
<value>nic/mams/model/AddressType.hbm.xml</value>
<value>nic/mams/model/AdvaloramRoyalty.hbm.xml</value>
<value>nic/mams/model/Agent.hbm.xml</value>
<value>nic/mams/model/AppJawsize.hbm.xml</value>
<value>nic/mams/model/Applicant.hbm.xml</value>
<value>nic/mams/model/ApplicantAddress.hbm.xml</value>
<value>nic/mams/model/ApplicantCompany.hbm.xml</value>
<value>nic/mams/model/ApplicantContact.hbm.xml</value>
<value>nic/mams/model/ApplicantLogin.hbm.xml</value>
<value>nic/mams/model/ApplicantStatus.hbm.xml</value>
<value>nic/mams/model/Application.hbm.xml</value>
<value>nic/mams/model/ApplicationDocument.hbm.xml</value>
<value>nic/mams/model/ApplicationHistory.hbm.xml</value>
<value>nic/mams/model/ApplicationMineral.hbm.xml</value>
<value>nic/mams/model/ApplicationSpecificQuery.hbm.xml</value>
<value>nic/mams/model/ApplicationSpecificQueryValues.hbm.xml</value>
<value>nic/mams/model/ApplicationStatus.hbm.xml</value>
<value>nic/mams/model/ApplicationSurvey.hbm.xml</value>
<value>nic/mams/model/ApplicationType.hbm.xml</value>
<value>nic/mams/model/ApplnSecurityFee.hbm.xml</value>
<value>nic/mams/model/AreaSpecification.hbm.xml</value>
<value>nic/mams/model/Bank.hbm.xml</value>
</property>
</beans>
nic/mams/model/applicationhistory.hbm.xml
nic/mams/model/applicationAddressHistory.hbm.xml
nic/mams/model/applicationContactHistory.hbm.xml
nic/mams/model/applicaturelases.hbm.xml
nic/mams/model/GeneratedChallan.hbm.xml
nic/mams/model/offerType.hbm.xml
nic/mams/model/OffenceDetailRule.hbm.xml
nic/mams/model/TemperoryAppNotes.hbm.xml
nic/mams/model/TemperoryFilePath.hbm.xml
nic/mams/model/OtherDocuments.hbm.xml
nic/mams/model/OffenceSubactsRules.hbm.xml
nic/mams/model/OffenceActRules.hbm.xml
nic/mams/model/Vehicles.hbm.xml
nic/mams/model/ApprovedMajorMineral.hbm.xml
nic/mams/model/GoogleImage.hbm.xml
nic/mams/model/PasswordHistory.hbm.xml
nic/mams/model/LeaseTransfer.hbm.xml
nic/mams/model/transferapplicationcompany.hbm.xml
nic/mams/model/MailSettings.hbm.xml
nic/mams/model/LeaseCompanyAddress.hbm.xml
nic/mams/model/FinancialYear.hbm.xml
nic/mams/model/IncomeTax.hbm.xml
nic/mams/model/AdditionalCharge.hbm.xml
nic/mams/model/MenuPrivileges.hbm.xml
nic/mams/model/AddressType.hbm.xml
nic/mams/model/advaloramryalty.hbm.xml
nic/mams/model/Agent.hbm.xml
nic/mams/model/AppJawsize.hbm.xml
nic/mams/model/applicator.hbm.xml
nic/mams/model/applicationAddress.hbm.xml
nic/mams/model/applicationcompany.hbm.xml
nic/mams/model/applicationcontact.hbm.xml
nic/mams/model/applicationlogin.hbm.xml
nic/mams/model/applicationstatus.hbm.xml
nic/mams/model/Application.hbm.xml
nic/mams/model/ApplicationDocument.hbm.xml
nic/mams/model/ApplicationHistory.hbm.xml
nic/mams/model/ApplicationMineral.hbm.xml
nic/mams/model/ApplicationSpecificQuery.hbm.xml
nic/mams/model/ApplicationSpecificQueryValue.hbm.xml
nic/mams/model/ApplicationStatus.hbm.xml
nic/mams/model/ApplicationSurvey.hbm.xml
nic/mams/model/ApplicationType.hbm.xml
nic/mams/model/ApplnSecurityFee.hbm.xml
nic/mams/model/AreaSpecification.hbm.xml
nic/mams/model/Bank.hbm.xml
但我有例外
org.hibernate.hql.ast.QuerySyntaxException:申请者未映射d[从申请者中选择a作为内部联接a.applications作为b内部联接b.applicationType作为c内部联接b.permits作为d,其中d.permitNo=?和c.applicationTypeId=?]
这个问题的解决方案是什么。任何人都知道,请帮助我就我的知识和我的研究而言,有两件事可能会让你陷入你正在遇到的那种例外
就我所知和我的研究而言,有两件事可能会让你陷入目前的例外状况