Class JpaAssignmentDBConfiguration
java.lang.Object
info.ejava_student.starter.assignment5.jpa.assignment.JpaAssignmentDBConfiguration
@Configuration
@Profile("assignment-tests")
public class JpaAssignmentDBConfiguration
extends Object
This configuration class is used by the "assignment" exercises. It instantiates
a pseudo-service, implementing an interface to support the test exercises.
Everything created here will get replaced by the end-to-end configuration
during the end-to-end tests and the running application.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjpaAssignmentService(RentalsMapper<HouseRentalDTO, HouseRentalBO> mapper, jakarta.persistence.EntityManager entityManager, JpaHouseRentalsRepository repo) mapper()
-
Constructor Details
-
JpaAssignmentDBConfiguration
public JpaAssignmentDBConfiguration()
-
-
Method Details
-
mapper
-
jpaAssignmentService
public JpaAssignmentService<HouseRentalDTO,HouseRentalBO> jpaAssignmentService(RentalsMapper<HouseRentalDTO, HouseRentalBO> mapper, jakarta.persistence.EntityManager entityManager, @Autowired(required=false) JpaHouseRentalsRepository repo)
-