0e68c8a5995fc2b17edf255fb41b6cdc6f561022
a PersistenceContext and give it out to all of your repositories and delay activating the context until you are ready for everyone to start talking to the database. In this way you can enforce that no one does any database fooling around before it's OK. I also introduced DepotRepository.init() where database fooling around is OK. The general idea is that you register schema migrations in your constructor and then if you have data migrations to be done (or initialization that requires reading things from the database), you do that in init().
Description
Languages
Java
95.6%
Shell
4.3%