Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
I'm using the artifact generator to reverse engineer our database.
I get an error message like this, where the 'SomeTable' is the name of a db table (which changes depending on which db I try to reverse engineer):
Association references unmapped class: com.rps.study.SomeTable
The tables exist and may have a few FK constraints (the table that blows up is the same for each try at the same database).
I'm on JVM 1.4.2
Any suggestions?
Hibernate version:
3.0
Mapping documents:
None
Code between sessionFactory.openSession() and session.close():
None
Full stack trace of any exception that occurs:
Code:
Error 2005-05-03 16:59:55.475 Association references unmapped class: com.rps.study.SomeTable
org.hibernate.MappingException: Association references unmapped class: com.rps.study.SomeTable
at org.hibernate.cfg.JDBCBinder.bindCollectionSecondPass(JDBCBinder.java:1178)
at org.hibernate.cfg.JDBCBinder$CollectionSecondPass.secondPass(JDBCBinder.java:1201)
at org.hibernate.cfg.HbmBinder$SecondPass.doSecondPass(HbmBinder.java:2052)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:830)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:801)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:218)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:210)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:147)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105)
Name and version of the database you are using:SQL Server 2000
The generated SQL (show_sql=true):None
Debug level Hibernate log excerpt:Config fileCode:
<?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 name="mySessionFactory">
<property name="hibernate.connection.username">username</property>
<property name="hibernate.connection.password">password</property>
<property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
<property name="hibernate.connection.url">jdbc:jtds:sqlserver://server:port/dbName</property>
<property name="hibernate.connection.driver_class">net.sourceforge.jtds.jdbc.Driver</property>
</session-factory>
</hibernate-configuration>