
spring.repository.components.raildelays-dao-context.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:jpa="http://www.springframework.org/schema/data/jpa" xmlns="http://www.springframework.org/schema/beans" 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 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> <context:annotation-config/> <!-- Entities --> <context:component-scan base-package="be.raildelays.domain.entities"/> <!-- Repositories --> <!-- Despite the fact that we have a service layer, Spring Data JPA requires to define a transaction manager to configure its repositories. So, here we have to declare a reference to a bean which only exists on the service layer --> <jpa:repositories base-package="be.raildelays.repository" entity-manager-factory-ref="raildelaysEntityManagerFactory" transaction-manager-ref="raildelaysTransactionManager" repository-impl-postfix="CustomJpa"/> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy