- This topic has 3 replies, 2 voices, and was last updated 16 years ago by Loyal Water.
-
AuthorPosts
-
ttibbMemberWhen using hibernate reverse engineering to map table into java file, the error msg box pops up. “An internal error occurred during: “Generating Artifacts”.”
DB: postgresql 8.1
jdbc driver: postgresql-8.3-603.jdbc3.jar
eclipse 3.2 + myeclipse 5.5Error log:
org.hibernate.cfg.JDBCBinderException: Foreign key name (user_fk) mapped to different tables! previous: org.hibernate.mapping.Table(public.attachment) current:org.hibernate.mapping.Table(public.team)
at org.hibernate.cfg.reveng.JDBCReader.processForeignKeys(JDBCReader.java:210)
at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:93)
at com.genuitec.eclipse.hibernate.wizards.MEJDBCMetaDataConfiguration$1.readDatabaseSchema(MEJDBCMetaDataConfiguration.java:104)
at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:89)
at com.genuitec.eclipse.hibernate.wizards.MEJDBCMetaDataConfiguration.readFromJDBC(MEJDBCMetaDataConfiguration.java:137)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$9.execute(GenerateArtifactsJob.java:819)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:56)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:89)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.buildConfiguration(GenerateArtifactsJob.java:803)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:381)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Loyal WaterMemberCan you refer to this thread and check if the solution works for you:-
http://forum.hibernate.org/viewtopic.php?t=956490
ttibbMemberActually I tried that but it seems not work. Any other solution please?
Loyal WaterMemberI would suggest you cross post on the hibernate forums as well.
-
AuthorPosts