Missing @Entity silently fails
------------------------------
Key: ANN-672
URL:
http://opensource.atlassian.com/projects/hibernate/browse/ANN-672
Project: Hibernate Annotations
Issue Type: Bug
Affects Versions: 3.3.0.ga
Environment: 3.2.5
Reporter: Hontvári József
Priority: Minor
Hibernate config.xml contains a class in a <mapping class=... element. The class has no
@Entity annotation by mistake. There is no exception thrown and I haven't find any log
entry even on trace level, other then the usual
o.h.c.AnnotationConfiguration null<-org.dom4j.tree.DefaultAttribute@1f4cf6f [Attribute:
name class value "...
which appears for all (valid) classes too. The problem is manifested only runtime, when
Hibernate complains that the entity is undefined.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira