• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

net. sf. hibernate. MappingException: duplicate import -- WTF?

 
Ivan Jouikov
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I sure got off the wrong foot with Hibernate. I'm blocked by this error when I'm trying to intitialize hibernate. Here's what I'm trying to do:



The problem happens where I have the try/ctach. Here it is:



So apparently I attempt to import "accounts" twice... Here's my hibernate.cfg.xml:



Any idea what could be causing this error?
[ March 24, 2005: Message edited by: Ivan Jouikov ]
 
Steven Bell
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I've seen that with mine it was a copy paste error where I forgot to change the class name attribute.
 
Steven Bell
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm, not sure what happened to my post there.

Anyways, when that has happened to me it was a copy paste error. Make sure the class name attribute is correct in all the files.
 
Ivan Jouikov
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well the only time that I do reference the Accounts is in my "Accounts.cfg.xml", and it's no typo.
 
Ivan Jouikov
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the mapping:



(class org.ablogic.hibernate.Accounts does exist)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic