Annotation « cfg « JPA Q&A





1. Why I have to declare each and every class in my hibernate.cfg.xml when using annotations?    stackoverflow.com

Why it isn't enough to set the @Entity annotation? Am I missing the point here (performance?)? Thanks.

2. how to map annotated classes and mapping files in single cfg    forum.hibernate.org

This is my error mmerder. Code: [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] resource: org.xxx.model.SamTable.hbm.xml not found [INFO] ------------------------------------------------------------------------ [INFO] Trace org.hibernate.MappingNotFoundException: resource: org.xxx.model.SamTable.hbm.xml not found at org.hibernate.cfg.Configuration.addResource(Configuration.java:517) at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(Annotat ionConfiguration.java:524) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.jav a:1479) ...

3. Annotations and hibernate.cfg.xml    forum.hibernate.org

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 ...

4. Annotation: NoClassDefFound: org/hibernate/cfg/Configuration    forum.hibernate.org

Newbie Joined: Fri Oct 27, 2006 2:28 pm Posts: 14 Hi, I try to convert my current running application, which uses xml configuration file for hibernate mapping to annotation. I only do so partially for 1 class right now. However, I run into no class def found. This class is verified to be inside the hibernate.jar. Could someone please glance down ...