开发者

how resolve hibernate Envers Configuration Error?

开发者 https://www.devze.com 2023-01-22 04:28 出处:网络
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 co

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消