Hi here i am using hibernate hbm file to all model class. Now I need to audit the details of that class. I tried to use hibernate envers. I had created a new class with @Audited
annotation . Then i cofigured my hibernate.cfg.xml
with my new class and Envers Configuration like <listener class="org.hibernate.envers.event.AuditEventListener" type="post-insert"/
>,etc.
While I start apache I got the
Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanC开发者_开发知识库reationException: Error creating bean with name 'sessionFactory' defined in file
I am very new to hibernate envers... I googled it... but I could not understand... can anyone help me how reslove it...
Thanks in Advance
Setup logging for the org.hibernate
category, there is something preventing the SessionFactory
from being created and the cause is probably in the logs.
精彩评论