not able to use both EnversRevisionRepositoryFactoryBean.class in a project we already using DataTablesRepositoryFactoryBean.class
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.data.jpa.datatables.repository.DataTablesRepositoryFactoryBean; import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@Configuration @EnableJpaRepositories(repositoryFactoryBeanClass = DataTablesRepositoryFactoryBean.class ,basePackages = {"com.cintana.gts.repository"}) @ComponentScan({"com.cintana.gts.service"}) public class DataTablesConfiguration {
}
then am trying to add like below import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.data.envers.repository.support.EnversRevisionRepositoryFactoryBean; import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@Configuration
@EnableJpaRepositories(repositoryFactoryBeanClass = EnversRevisionRepositoryFactoryBean.class, basePackages = "com.cintana.gts.repository")
@ComponentScan({"com.cintana.gts.service"}) public class RepositoryConfiguration {
}
it is not working