I got the following error when I try to extract POJOs from an existing MYSQL database using Reverse Engineer ant build from Hibernate tool.
I am using the following jar files: Hibernate3.jar - v3.5.0 Hibernate Tool v3.2.4 mysql-connector-java-5.0.5.jar eclipse 3.4.0
What version of hibernate engine should I use in this case?
java.lang.IncompatibleClassChangeError: Found interface org.hibernate.cfg.Mappin gs, but class was expected at org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java: 134) at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:95) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaData Configuration.java:42) at org.hibernate.tool.ant.JDBCConfigurationTask.doConfiguration(JDBCConf igurationTask.java:83) at org.hibernate.tool.ant.ConfigurationTask.getConfiguration(Configurati onTask.java:55) at org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateTo olTask.java:302) at org.hibernate.tool.ant.HibernateToolTask.getProperties(HibernateToolT ask.java:318) at org.hibernate.tool.ant.ExporterTask.configureExporter(ExporterTask.ja va:94) at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:39) at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.ja va:186) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a:106) at org.apache.tools.ant.Task.perform(Task.java:348)
thanks, sis
|