package fr.openwide.core.test.jpa.externallinkchecker.config.spring;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

import fr.openwide.core.jpa.config.spring.AbstractConfiguredJpaConfig;
import fr.openwide.core.jpa.config.spring.provider.JpaPackageScanProvider;
import fr.openwide.core.jpa.externallinkchecker.business.JpaExternalLinkCheckerBusinessPackage;

@Configuration
@EnableAspectJAutoProxy
public class JpaExternalLinkCheckerTestJpaConfig extends AbstractConfiguredJpaConfig {

	@Override
	public JpaPackageScanProvider applicationJpaPackageScanProvider() {
		return new JpaPackageScanProvider(JpaExternalLinkCheckerBusinessPackage.class.getPackage());
	}

}

@@ -63,16 +63,102 @@
 pring;%0A%0A
+import org.hibernate.Interceptor;%0Aimport org.springframework.context.annotation.Bean;%0A
 import o
@@ -210,16 +210,16 @@
 ration;%0A
-
 import o
@@ -522,16 +522,187 @@
 Package;
+%0Aimport fr.openwide.core.jpa.externallinkchecker.business.interceptor.ExternalLinkWrapperInterceptor;%0Aimport fr.openwide.core.jpa.hibernate.interceptor.ChainedInterceptor;
 %0A%0A@Confi
@@ -902,16 +902,16 @@
 der() %7B%0A
-
 %09%09return
@@ -999,12 +999,142 @@
 e());%0A%09%7D
+%0A%09%0A%09@Bean%0A%09public Interceptor interceptor() %7B%0A%09%09return new ChainedInterceptor()%0A%09%09%09%09.add(new ExternalLinkWrapperInterceptor());%0A%09%7D
 %0A%0A%7D%0A

Declare the interceptor (even if it's not very useful in the tests atm)