Open arteymix opened 1 month ago
For the DAO, the best would be to have an annotation to enable and restore a given list of fetch profiles.
@EnableFetchProfile("array-design-with-composite-sequences")
ArrayDesign findWithCompositeSequences();
It could be validated on startup to make sure that the profile is declared.
Maybe Spring Data already has something similar we could borrow.
We can formalize mots of our thawing logic by declaring a fetching profile and enabling it when loading an entity. This would result in less boilerplate logic in the DAO.