Hello - I'm a first time user of Hibernate and have been pleased so far with the product. I think the answer is "no" to this question but figured that someone would know for sure...
I am putting together a library application. I've got videos, books, music. All of which have an attribute of media. Media resides in different packages for the individual domains - books include softcover/hardcover; music includes CD, cassette, etc; video includes DVD, VHS, etc.
I've defined each as a subclass and get the following exception:
Code:
20:38:34,459 ERROR Configuration:252 - Could not compile the mapping document
net.sf.hibernate.MappingException: duplicate import: Media
at net.sf.hibernate.cfg.Mappings.addImport(Mappings.java:85)
at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:126)
I expect that I need to name the classes differently. Is this correct or is there a trick about it?