-->
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: duplicate imports
PostPosted: Tue Jul 19, 2005 7:57 pm 
Newbie

Joined: Tue Jul 12, 2005 12:27 pm
Posts: 1
Folks,
I have a quick question. What are the common mistakes in coding POJO that may cause hibernate "duplicate imports " error to be thrown?
One mistake that I came across with is the missing of IDs.
But in my situation, I have the all associated primary and foreign keys defined. What else could be wrong there?

I appreciate your help.

Thanks,
Pius


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 20, 2005 2:08 am 
Expert
Expert

Joined: Thu Dec 04, 2003 12:36 pm
Posts: 275
Location: Bielefeld, Germany
It would be helpful if you showed us your code as well as your mappings.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 20, 2005 7:47 pm 
Beginner
Beginner

Joined: Fri May 21, 2004 12:21 pm
Posts: 22
Location: Sacramento CA, USA
The common thing is to have same mapping file multiple time in the hibernate.cfg.xml file. OR mapping 2 mapping files with samee POJO name(cut and paste error).

but as told by sven it is always good to post the code to get a better help.


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.