-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Mapping Exception when generating from JDBC HIBERNATE IDE
PostPosted: Fri Mar 04, 2005 4:18 pm 
Regular
Regular

Joined: Fri Feb 13, 2004 10:02 pm
Posts: 90
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
IDE 1.5 alpha
Full stack trace of any exception that occurs:
org.hibernate.MappingException:duplicate import: com.llic.business.Userauth
Name and version of the database you are using:
IBM DB2 UDB

Debug level Hibernate log excerpt:

Code:
!SUBENTRY 2 org.hibernate.eclipse.console.HibernateConsolePlugin 4 150 2005-03-04 14:23:37.686
!MESSAGE duplicate import: com.llic.business.Userauth
!STACK 0
org.hibernate.MappingException: duplicate import: com.llic.business.Userauth
   at org.hibernate.cfg.Mappings.addImport(Mappings.java:99)
   at org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:180)
   at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:123)
   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)

!ENTRY org.eclipse.pde.core 1 1 2005-03-04 14:32:21.264
!MESSAGE Problems encountered while PDE was scanning the Target Platform
!SUBENTRY 1 org.apache.lucene 1 1 2005-03-04 14:32:21.264
!MESSAGE This plug-in (located at "c:\eclipse\plugins\org.apache.lucene_1.3.0") was ignored because another version of the same plug-in (located at "c:\eclipse\plugins\org.apache.lucene_1.4.3") was picked


I have 77 tables in the database I need to map. The utility runs for about 2 minutes, then I receive this exception.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 05, 2005 12:20 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
it seems like you have the same table twice.

try to set the default catalog-schema in the hibernate.cfg.xml file.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.