Can I use annotations in superclass, and .cfg.xml files in subclasses
There is a common project, to which my application is going to interact. The common application is in JPA-using annotations in the model classes. Some of the model classes in my application is going to extend the common project's model classes. But my application uses .cfg.xml files for the model classes. So do I have to change the hibernate configuration files to annotations in my application, to make it work with common project?
I tried running a Junit, without changing the configuration files to annotations, but I am encountering errors in query. So I guess, this might be the problem - that I have to change the hibernate configuration files to annotations.