How to connect iReport with annotated POJOs?

I want to connect iReport with my pojo classes, so I can use hql, but when I make a hibernation connection, the following error is displayed:

unable to load class "mapping class =" net.jaffa.school.shared.hibernate.test "

+4
source share
1 answer

You must add your .class files to the iReport class path.

Go to Tools -> Options -> iReport -> Classpath , add the folder of your .class files (or add them as a jar), and then restart iReport. This will make iReport aware of your pojos.

+4
source

Source: https://habr.com/ru/post/1396396/


All Articles