|
Actually the base class was using annotations, and the super classs was using .hbm.xml file for mapping with the database. In this case I don't require the base class annotations, as my super class takes care of mapping all the database columns. So I removed the annotations from the base class and tried executing the Junit, but to no use. It still complains the same thing. Now its the case that even .hbm.xml files are not working with Entity Manager. The next option for me would be to change to annotations and remove .hbm.xml files. But I don't see any reason why this shouldn't work, and moreover its additional effort to convert to annotations.
|