This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
That error means you are trying to map an entity twice. Check the configuration file(s) in your classpath - is ESongBulkFile.hbm.xml mapped more than once? Or do you have another mapping file that uses the same class? Or are you calling the configure method more than once?
I found the problem. In the hbm file the property called "originalFilename" is repeated twice. I know this is my mistake, but Hibernate gave me a really bad error message. It really threw me off.
Originally posted by Jehan Jaleel: In the hbm file the property called "originalFilename" is repeated twice. I know this is my mistake, but Hibernate gave me a really bad error message.
I agree. Maybe you should open a thread in the Hibernate forum and bring this to the notice of Hibernate developers who visit those forums regularly.