-
Notifications
You must be signed in to change notification settings - Fork 32
Tzatziki DB Module
Current Tzatziki Spring JPA module is used to manage JPA entities in Cucumber steps. It is based on Spring JPA CrudRepository. It is required to have a Spring Boot application running in order to use this module. The module will autowire the EntityManagerFactory and the CrudRepository beans. It also provides sorting functionalities with Spring PagingAndSortingRepository.
We can rewrite the Tzatziki Spring JPA module to use only JPA interfaces and not Spring specific objects. The EntityManagerFactory will not be autowired automatically anymore, the user will have to provide it to the JPASteps object. Sorting functionalities will not be available anymore since it is Spring specific.
This module will only autowire the EntityManagerFactory and assign it to the JPA generic steps from the Tzatziki JPA Module. Sorting functionalities will be kept here. It will also maintain the compatibility with Spring Data @Table annotation.
This module will provide steps to insert SQL raw data and other specific steps providing a Datasource object.
flowchart TD
A[Tzatziki Pure DB] --> B(Tzatziki JPA)
B --> C[Tzatziki Spring JPA]