Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Activating auditing functionality

  • Loading branch information...
commit 93d20d3dd536936f0f382cb2c9cb1f30d4d6a12c 1 parent f581bff
Zoran Kokovic authored
3  zcontact-data/src/main/resources/infrastructure.xml
View
@@ -8,17 +8,14 @@
<jdbc:embedded-database id="dataSource" type="HSQL" />
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
-
<property name="dataSource" ref="dataSource" />
<property name="persistenceUnitName" value="zcontact-pu" />
-
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="generateDdl" value="true" />
<property name="database" value="HSQL" />
</bean>
</property>
-
</bean>
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
18 zcontact-data/src/main/resources/repository-context.xml
View
@@ -1,12 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:jpa="http://www.springframework.org/schema/data/jpa"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ xmlns:jpa="http://www.springframework.org/schema/data/jpa"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa.xsd">
- <import resource="infrastructure.xml" />
+ <import resource="infrastructure.xml" />
+
+ <jpa:repositories base-package="org.zcontactdata.repository" />
+
+ <jpa:auditing auditor-aware-ref="auditor-aware" />
+
+ <bean id="auditor-aware" class="org.zcontactdata.domain.audit.AuditorAwareImpl" />
- <jpa:repositories base-package="org.zcontactdata.repository" />
-
-</beans>
+</beans>
Please sign in to comment.
Something went wrong with that request. Please try again.