Level 1 · Apprentice0 XP
Entities, repositories and queries, and what happens between your code and the database.
Step 1 / 5
ProblemEach service builds SQL strings, maps result sets by column index and opens its own connection. A renamed column means a hunt through forty strings.
← → step
Before this: Validation and error responses
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Create an entity and a repository with one derived query and one @Query. In a @Transactional test, load an entity, change a field without calling save, flush, and check the SQL log for the UPDATE. Then touch a lazy relation outside a transaction and read the exception.