Loading...
Loading...
Section 16 · Stage 4: Build Applications
Map Java objects to tables, model relationships, write repository queries and avoid the common performance traps.
Why we map objects to tables and how JPA, Hibernate and Spring Data relate.
Turn Java classes into database tables with annotations.
Read and write data with Spring Data repositories and custom queries.
Map one-to-one, one-to-many and many-to-many links between entities.
Understand how Hibernate tracks objects so its behaviour stops being a surprise.
Use @Transactional correctly so business operations are all-or-nothing.
Return large result sets in pages and support filters.
Spot and fix the problems that make JPA applications slow.
Version your database schema like code instead of letting Hibernate change it.
Move ShopLite from JdbcTemplate to Spring Data JPA with relationships, paging and migrations.
These sections are ready to study now.