posted 8 years ago
My question is, why am I required to declare in the hibernate.cfg.xml
<mapping class="com.ev.hcm.model.Role"/>
where as I am using annotations. Here is my class:
if I declare that mapping class then I get it compiled otherwise I get the same exception, ie, org.hibernate.MappingException: Unknown entity: com.ev.hcm.model.Role
What am I doing wrong?
I am using hibernate3.jar.
Thanks in Advance,
Maki Jav
Help gets you when you need it!