I am using DB2 Express C and MyEclipse Blue Edition to reverse engineer Hibernate objects following the tutorials but I get this error:
An internal error occurred during: “Generating Artifacts”.
java.util.NoSuchElementException
java.util.NoSuchElementException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:796)
at java.util.HashMap$ValueIterator.next(HashMap.java:822)
at com.genuitec.eclipse.hibernate.tool.MESingleClassExporter.doStart(MESingleClassExporter.java:59)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VAbstractExporter.start(VAbstractExporter.java:97)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$3.execute(GenerateArtifactsJob.java:554)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:95)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:419)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
The table has a primary key a few columns and no foreign keys:
CREATE TABLE "MCR_CODEASCAMOUNT" (
"ROW_ID" INT NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1, NO CACHE),
"CODE" VARCHAR(5),
"ASCYEAR" VARCHAR(4),
"ASCAMOUNT" DECIMAL(7,2)
)