Joined: Fri Mar 11, 2005 6:56 pm Posts: 1
|
When trying to reverse (artifact) engineer an existing MySQL with the Eclipse Hibernate Tools (3.0 alpha 1), then I am getting a NPE (see below).
Hibernate version: 3 with Eclipse Tools 3.0 alpha 1
Mapping documents: reverse engineering
Full stack trace of any exception that occurs:
java.lang.NullPointerException
at org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:73)
at org.hibernate.mapping.ForeignKey.setReferencedTable(ForeignKey.java:51)
at org.hibernate.cfg.JDBCBinder.processForeignKeys(JDBCBinder.java:1085)
at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:119)
at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:213)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:76)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:210)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:147)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:105)
Name and version of the database you are using: MySQL 4.1.9 Standard (Mac OS X)
The generated SQL (show_sql=true): how to switch this on for the Hibernate version integrated with the Eclipse tools???
Debug level Hibernate log excerpt: same here like above?!
|
|