I'm a beginner in Hibernate. I have a data model in my database (Oracle). I use Middlegen plug-in for Hibernate to generate the hbm xml mapping file from tables in the database. Then I use hbm2java to generate java classes from the mapping file.
When I invoke buildsessionFactory to build the session factory object after configuration (by the configure.cfg.xml file), it successfuly binds the classes and the mapping. However, there is an java.lang.ArrayIndexOutOfBoundsException at
net.sf.hibernate.persister.EntityPersister.initPropertyPaths(EntityPersister.java:918)
When I took a look to the src code of EntityPersister, I cannot figure what the cause of the problem. I'm not sure whether it is the problem caused by the datamodel, the mapping file, or the generated class? Do any one have simliar experiences? or could point to me the direction on how to solve/figure out what the problem is? Thank a lot!
Eric Ng
|