I am using Eclipse 3.2 and 3.3 and both exhibit the same behavior.
When I use the Hibernate Code Generation Dialog, I have two configurations, one that I am trying to create a new database from java classes, using annotations, and the other is to go to another database and reverse engineer it, using annotations.
I am also using jdk1.6, on WinXP.
Hibernate Tools 3.2 beta 9 is also what I am using.
For the reverse engineering, the hibernate.cfg.xml works, as it is able to find the tables, and show me the schema of the tables, but, I have only created the other database, I am trying to get Hibernate to create everything.
When I select exporter->Schema Document I get this error, under both configurations, but when I don't select it, no error, but no java classes, just some html files and other resources.
I am not concerned with the lack of source creation, but the error message may be of interest, as it appears that you assume that some files will be created.
Error
Thu Aug 16 08:08:43 EDT 2007
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.remove(Unknown Source)
at org.hibernate.tool.hbm2x.DocExporter.generatePackageSummary(DocExporter.java:386)
at org.hibernate.tool.hbm2x.DocExporter.doStart(DocExporter.java:161)
at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95)
at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate$1.execute(CodeGenerationLaunchDelegate.java:257)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:89)
at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.runExporters(CodeGenerationLaunchDelegate.java:228)
at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:130)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:766)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:608)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:899)
at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1102)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
|