[Qt-jambi-interest] Hibernate ignores inheritance after upgrade to QtJambi4.4
Nico Naumann
nico.naumann at hpi.uni-potsdam.de
Fri Aug 22 20:07:52 CEST 2008
Hi,
I recently upgraded my App from Qt4.3 to the current version 4.4. Since
then I am experiencing serious trouble with a component that usees
Hibernate and Hibernate Annotations.
The scenario is the following:
I have a data model with several inheritance layers. In order to store
this model into the database, the hibernate code also makes use of
inheritance via the annotation
@Inheritance(strategy=InheritanceType.JOINED)
The code works fine while I am building my app with Qt4.3 lib. As soon
as I change the library to the 4.4 version without changing any line of
code, the following excetion is thwron by Hibernate while trying to
parse the model annotations:
org.hibernate.AnnotationException: No identifier specified for entity:
org.model.Node
at
org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:650)
This eception usually occurs when an entity actually has no Id field.
This isnt the case here since the Id comes from the superclass which, as
I said, already worked fine.
I dont see what could be the problem here and why the upgrade to Qt4.4
has effects within Hibernate. Did anybody else experience such issues
after upgrading or has an idea what could be the problem here?
Any help is greatly appreaciated!
Thanks,
Nico
More information about the Qt-jambi-interest
mailing list