JPA, Spring, Spring Data

Using @ElementCollection in Spring JPA queries

In my domain model, I had a list of Strings to be stored. As it is a typical reason of using element collections, I decided to do so. Using element collection in the domain model has the following advantages: The domain model remains simple. No additional type, The connected list is bounded to the "master"… Continue reading Using @ElementCollection in Spring JPA queries

Advertisement
JUnit, Spring, Spring Boot

Create Spring service used only in test environment

Create Spring service used only in test environment In my project, we use three different environments for running the application. Production SIT (system integration) Local development In the production environment thee is a third party system, that authenticates the user and automatically adds a header value to the request. I wanted to implement a feature,… Continue reading Create Spring service used only in test environment