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