Is it possible to use annotations in classes and hibernate.cfg.xml? Maybe this sounds crazy but let me try to explain why I want to do that.
I'm stuck with oc4j 10.1.3 : (
Lol, any way I'm stuck with this container and I'm using hibernate + seam. But when I use JPA EntityManager I can't undeploy my app from OC4J and deploy it again, it just does not happen. Seam is not able to instantiate the EntityManager component anymore, unless I restart the conteiner...
So my solution was to use Seam Managed Hibernate Session, using it this does not happen anymore. But now I'm unable to make it work with the annotations that I already have in my entity classes...
Please, let me know if it is possible to make Hibernate recognize my annotated entity classes using hibernate.cfg.xml
Thanks!
|