Jump to content
JasperReports Library 7.0 is now available ×

Creating a Hibernate connection in iReport


kopcheski

Recommended Posts

Hello! That's the problem:

When I try to create a Hibernate connection (iReport 1.3.0) I get the following error after clicking the 'Test' button:

 

"An AnnotationConfiguration instance is required to use <mapping clazz="MyClass"/>"

 

I guessed it was missing some jars to classpath, then I imported hibernate.jar, hibernate-annotations.jar. I also did my application directory to the classpath. But it was always the same error.

All Jaybird (Firebird) jars were also imported to classpath.

 

MyClass is the first class mapped in my hibernate.cfg.xml, so I guess iReport is 'reading' the xml file.

 

All my configuration settings can be found in this cfg.xml. I mean dialect, driver, user, password, etc...

 

I trying to create this kind of connection cause I want to write HQL to query data. I guess this is the best way to work with Hibernate/iReport.

 

Can somebody help me solving this problem?

 

Ps. in my cfg.xml i did NOT write 'mapping clazz' with double Z. I wrote 'class', double S.

 

Thanks!

 

Post edited by: kopcheski, at: 2007/02/12 11:03

Post edited by: kopcheski, at: 2007/02/12 15:39

Link to comment
Share on other sites

  • 1 month later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...