-->
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: class xxx not found while looking for property: xxxXxxx
PostPosted: Wed Sep 14, 2011 4:46 am 
Newbie

Joined: Wed Sep 14, 2011 3:42 am
Posts: 1
I have created a hibernate connection in iReport 3.7.5. At first i was having difficulty getting iReport to find the hibernate.cfg.xml file. Now that I have made the connection and gotten the test connection done, I have to comment out all my mapping resources and class-cache directories to make the connection work. the directory structures are all put in the code correctly.

<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>

<session-factory name="SessionFactory">

<property name="connection.driver_class">net.sourceforge.jtds.jdbc.Driver</property>
<property name="connection.url">jdbc:jtds:sqlserver://199.99.99.99/HELP99</property>
<property name="connection.username">HELP99</property>
<property name="connection.password">HELP99</property>
<property name="default_schema">dbo</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property> <!-- ADDED DIALECT -->


<mapping resource="com/help/hibernate/AbsenceEntitlement.hbm.xml"/>
<mapping resource="com/help/hibernate/AbsenceEntry.hbm.xml"/>


<class-cache class="com.help.hibernate.AbsenceEntitlement" usage="read-only"/>
<class-cache class="com.help.hibernate.AbsenceEntry" usage="read-only"/>

</session-factory>

</hibernate-configuration>

when i connect the hibernate database i get the error "class AbsenceEntitlement not found while looking for property: personRef" personRef is a one to many relationship with a few tables!

What could be causing the error???


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.