I'm using the Hibernate Tools in Eclipse and have successfully generate HBM.XML' and Java Classes for all my components, however I'm getting an error creating the SessionFactory in my Hibernate Configurations panel. I check the class (InvestigativeElement) and it compiles fine, as well as all it's immediate listed dependencies. Anyone know where I should start looking for an error?
Hibernate version:3.x, Tools version: 3alpha5
[b]Mapping documents:
InvestigativeElement.hbm.xml:
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<!--
Auto-generated mapping file from
the hibernate.org cfg2hbm engine
-->
<class name="x.InvestigativeElement" table="INVESTIGATIVE_ELEMENT" schema="XXXXXXX">
<id name="invElmtId" type="integer">
<column name="INV_ELMT_ID" precision="9" scale="0" />
<generator class="assigned" />
</id>
<property name="invElmtName" type="string">
<column name="INV_ELMT_NAME" length="64" not-null="true" />
</property>
<property name="invElmtDesc" type="string">
<column name="INV_ELMT_DESC" length="2000" not-null="true" />
</property>
<property name="createUser" type="string">
<column name="CREATE_USER" length="32" not-null="true" />
</property>
<property name="createDt" type="timestamp">
<column name="CREATE_DT" length="7" not-null="true" />
</property>
<property name="updateUser" type="string">
<column name="UPDATE_USER" length="32" />
</property>
<property name="updateDt" type="timestamp">
<column name="UPDATE_DT" length="7" />
</property>
<set name="loiInvElmts" inverse="true">
<key>
<column name="INV_ELMT_ID" precision="9" scale="0" not-null="true" />
</key>
<one-to-many class="x.LoiInvElmt" />
</set>
<set name="invElmtPointSchedules" inverse="true">
<key>
<column name="INV_ELMT_ID" precision="9" scale="0" not-null="true" />
</key>
<one-to-many class="x.InvElmtPointSchedule" />
</set>
</class>
</hibernate-mapping>
Full stack trace of any exception that occurs:
Error Log Error: entity class not found: x.InvestigativeElement... details:
java.lang.ClassNotFoundException: x.InvestigativeElement
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:403)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:108)
at org.hibernate.mapping.PersistentClass.getMappedClass(PersistentClass.java:95)
at org.hibernate.tuple.PropertyFactory.getGetter(PropertyFactory.java:163)
at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:43)
at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:114)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:410)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:219)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1126)
at org.hibernate.console.ConsoleConfiguration$2.execute(ConsoleConfiguration.java:209)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:71)
at org.hibernate.console.ConsoleConfiguration.initSessionFactory(ConsoleConfiguration.java:207)
at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:24)
at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:68)
at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:192)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
Name and version of the database you are using:
Oracle9i
The generated SQL (show_sql=true):
N/A
Debug level Hibernate log excerpt:
N/A