-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Association references unmapped class
PostPosted: Fri Sep 30, 2005 9:23 am 
Newbie

Joined: Fri Sep 30, 2005 9:18 am
Posts: 1
Hi,

I need some help.
I'm trying to join aone table to others and I've the following error :
Initial SessionFactory creation failed.org.hibernate.MappingException: Association references unmapped class: DefaultLoggingEventThrowable
java.lang.NoClassDefFoundError


See above my mapping files :

<?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 default-lazy="false">
<class name="net.sf.hiberlog.DefaultLoggingEvent" table="LOGGER" >
<id name="id" type="integer" column="ID_LOGGER" >
<generator class="native"/>
</id>
<set name="throwableMessages" inverse="true" cascade="all-delete-orphan">
<key column="ID_LOGGER"/>
<one-to-many class="DefaultLoggingEventThrowable"/>
</set>
<property column="MESSAGE" name="message" not-null="true" type="string"/>
<property column="CLASS_NAME" name="className" not-null="true" type="string"/>
<property column="LINE_NUMBER" name="lineNumber" not-null="true" type="string"/>
<property column="LEVEL_NUMBER" name="level" not-null="true" type="string"/>
<property column="FILE_NAME" name="fileName" not-null="true" type="string"/>
<property column="METHOD_NAME" name="methodName" not-null="true" type="string"/>
<property column="LOGGER_NAME" name="loggerName" not-null="true" type="string"/>
<property column="THREAD_NAME" name="threadName" not-null="true" type="string"/>
<property column="START_DATE" name="startDate" not-null="true" type="date"/>
<property column="LOG_DATE" name="logDate" not-null="true" type="date"/>
</class>
</hibernate-mapping>


and


<?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 default-lazy="false">
<class name="net.sf.hiberlog.DefaultLoggingEventThrowable" table="LOG_THROWABLE" >
<id name="id" type="integer" column="LOG_ID" >
<generator class="native"/>
</id>
<!-- many-to-one class="DefaultLoggingEvent" name="FkLoggerId" not-null="true">
<column name="ID_LOGGER"/>
</many-to-one-->
<property column="POSITION" name="position" not-null="true" type="integer"/>
<property column="MESSAGE" name="message" not-null="true" type="string"/>
</class>
</hibernate-mapping>


Could you please help me to find the error ?

Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.