T
T
taylor962020-05-12 13:06:50
PostgreSQL
taylor96, 2020-05-12 13:06:50

What is the best way to organize the filling of database tables with default data during deployment?

There are entities, a rest layer, Stateless beans with business methods.
Tell me how and where is it better to register methods for filling the database with data during deployment?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
ayazer, 2020-05-12
@ayazer

this data is part of the database migration, and sootv. should be in there somewhere. If an orm is used, they usually have mechanisms to perform migrations. If the orm is not used and / or you want more control - Flyway or analogues. if the system is deep in production and multi-stage migrations of weeks / months are needed to make changes - at least the sql_migrations folder is somewhere in the root of the repository

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question