java - jasper report studio can't deal with hibernate.cfg.xml -
i using hibernate framework in project, choose use annotation approches.i'm using h2 embbeded database "file mode". every thing work fine in editor , in distribuatable jar file.i choose jasper reports create reports hit problem setup hibernate datasource in jrsudio.
please notce have setup class path classes folder in jrstudio.
and stack trace problem.
net.sf.jasperreports.engine.jrexception: java.lang.reflect.invocationtargetexception @ net.sf.jasperreports.data.hibernate.hibernatedataadapterservice.contributeparameters(hibernatedataadapterservice.java:129) @ net.sf.jasperreports.data.abstractdataadapterservice.test(abstractdataadapterservice.java:105) @ com.jaspersoft.studio.data.wizard.abstractdataadapterwizard$3.runoperations(abstractdataadapterwizard.java:162) @ com.jaspersoft.studio.utils.jobs.checkedrunnablewithprogress$1.run(checkedrunnablewithprogress.java:59) @ java.lang.thread.run(thread.java:745) caused by: java.lang.reflect.invocationtargetexception @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:498) @ net.sf.jasperreports.data.hibernate.hibernatedataadapterservice.contributeparameters(hibernatedataadapterservice.java:102) ... 4 more caused by: org.hibernate.mappingexception: not determine type for: javafx.beans.property.objectproperty, @ table: ttransaction, columns: [org.hibernate.mapping.column(amount)] @ org.hibernate.mapping.simplevalue.gettype(simplevalue.java:292) @ org.hibernate.mapping.simplevalue.isvalid(simplevalue.java:276) @ org.hibernate.mapping.property.isvalid(property.java:207) @ org.hibernate.mapping.persistentclass.validate(persistentclass.java:458) @ org.hibernate.mapping.rootclass.validate(rootclass.java:215) @ org.hibernate.cfg.configuration.validate(configuration.java:1149) @ org.hibernate.cfg.configuration.buildsessionfactory(configuration.java:1334) @ org.hibernate.cfg.annotationconfiguration.buildsessionfactory(annotationconfiguration.java:859) ... 9 more
hibernate configuration file:
<?xml version='1.0' encoding='utf-8'?> <!doctype hibernate-configuration public "-//hibernate/hibernate configuration dtd 3.0//en" "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <!-- database connection settings --> <property name="connection.driver_class">org.h2.driver</property> <property name="connection.url">jdbc:h2:file:./db/entrepriselimited;ifexists=true</property> <property name="connection.username">myusername</property> <property name="connection.password">mypass</property> <!-- sql dialect --> <property name="dialect">org.hibernate.dialect.h2dialect</property> <!-- echo executed sql stdout --> <property name="show_sql">true</property> <mapping class="bean.entreprise"/> <mapping class="bean.account"/> <mapping class="bean.typeoftransaction.typeoftransaction"/> <mapping class="bean.typeoftransaction.credittypeoftransaction"/> <mapping class="bean.typeoftransaction.debittypeoftransaction"/> <mapping class="bean.debittaxe"/> <mapping class="bean.transaction.transaction"/> <mapping class="bean.transaction.debit"/> <mapping class="bean.transaction.credit"/> <mapping class="bean.person.user"/> <mapping class="bean.person.customer"/> <mapping class="bean.person.physicperson"/> </session-factory> </hibernate-configuration>
so make problem ?
Comments
Post a Comment