Can I use Spring Data JPA Auditing without the orm.xml file (using JavaConfig instead)?
问题 I'm trying to get Spring Data Auditing to work in my Spring 3.2.8 / Spring Data 1.5 / Hibernate 4 project. As per the Spring Data Auditing docs, I've added the @CreatedBy , etc annotations to my entities, created by AuditorAware implementation, and instantiated it from within my JavaConfig. However, it never seems to fire. I find the docs a little confusing. It appears that the JavaConfig entry replaces the xml entry, but I am not sure. I don't currently have any orm.xml file in my