facebook

JDBCBinderException: Foreign key mapped to differnt tables

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #290288 Reply

    ttibb
    Member

    When 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.5

    Error 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)

    #290318 Reply

    Loyal Water
    Member

    Can you refer to this thread and check if the solution works for you:-
    http://forum.hibernate.org/viewtopic.php?t=956490

    #290356 Reply

    ttibb
    Member

    Actually I tried that but it seems not work. Any other solution please?

    #290396 Reply

    Loyal Water
    Member

    I would suggest you cross post on the hibernate forums as well.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: JDBCBinderException: Foreign key mapped to differnt tables

You must be logged in to post in the forum log in