-->
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.  [ 3 posts ] 
Author Message
 Post subject: Configuration Issue
PostPosted: Sun Apr 25, 2004 1:05 pm 
Beginner
Beginner

Joined: Fri Apr 02, 2004 3:34 am
Posts: 40
Anyone knows what this is caused by? I specify all mappings in a config file (hibernate.cfg.xml) and there are no duplicates there.

I used the new Configuration().configure() approach.

Thanks!

Caused by: net.sf.hibernate.MappingException: duplicate import: UserMultiMedia
at net.sf.hibernate.cfg.Mappings.addImport(Mappings.java:85)
at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:126)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:221)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1229)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:249)
at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:285)
at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:315)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 25, 2004 1:27 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Check the log for any previous errors before the duplicate import.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 25, 2004 2:16 pm 
Beginner
Beginner

Joined: Fri Apr 02, 2004 3:34 am
Posts: 40
There was no other errors. Since my process is fully automated from Middlegen (no manual editing)->Hibernate->POJOs, I modified the database schema slightly, rerun the process, and the error went away. Kind of strange...



michael wrote:
Check the log for any previous errors before the duplicate import.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.