Skip to content

Tzatziki DB Module

Alexandre Patelli edited this page Oct 16, 2024 · 1 revision

Current Tzatziki Spring JPA 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.

Future Tzatziki DB Modules:

Tzatziki JPA Module

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.

Tzatziki Spring JPA Module

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.

Tzatziki Pure DB Module

This module will provide steps to insert SQL raw data and other specific steps providing a Datasource object.

Inheritence

flowchart TD
    A[Tzatziki Pure DB] --> B(Tzatziki JPA)
    B --> C[Tzatziki Spring JPA]
Loading