DEV Community

Discussion on: You Can Do it in SQL, Stop Writing Extra Code for it

 
jppage profile image
jppage

For Spring Boot projects you would typically run your unit tests against an in memory database so it's important that the business logic is not in the database and that the code is database agnostic. The Java 8 API, for example, provides excellent data processing features like SUM, grouping etc. Putting business logic in the database is a retrograde step and should be avoided if possible.