TODO#
| Language | Topic | Description | Links |
|---|
| General | Mocks vs Stubs | Undestanding difference between Mock and Stubs | Mock vs Stubs |
| Java | Spring Security Patterns | Spring Security Patterns | Youtube Link |
| Kotlin | Bootiful Kotlin in Spring | Bootiful Kotlin in Spring | Youtube Link |
| Spring | HTTP Client Connection in Spring | Cinnection pooling in Spring | HTTPClient with Resttemplate and Baeldung's HTTPClient Connection management |
| Laravel, Vue | Laravel + Vue | Since Laravel was first backend technology to adopt Vue, IMHO Laravel seems to have best marriage with Vue | |
| SQL | SQL Procedures IRL | Twitter photo of custom Twitter Procedure | Link |
DOING#
| Language | Topic | Description | Links |
|---|
| Java | Spring Data JPA from 0-100 in 60 minutes | Spring Data JPA from 0-100 in 60 minutes | Youtube Link Slideshare |
Annotated Queries#
Pagination#
Projections#
Querydsl support#
Timestamp#
5:53 @version for optimistic locking
9:35 jpa does delayed write to the db, writes as late as possible. Persisting an object to the entityManager doesn’t actually write it in the db as soon as u make the persist call. But when you send a query to the db through the entityManager, then it flushes the writes to the db.
12:10 class annotated with @transactional, each methods started and closes a transaction
13:30 retrieving an entity object from entityManager then modifying it, entityManager stays connected to that object and eventually flushes the changes to the db (at the end of the transaction) EVEN THOUGH WE DIDNT EXPLICITLY PERSIST THE RETRIEVED OBJECT BACK TO THE DB THROUGH entityManager
15:30 lazy loading vs eager loading, if you try to iterate over an attribute that is lazily loaded, and you are outside a transaction, then you will get lazy loading exception
19:00 basics of JPA: you load entities through entityManager, which acts as a cache/collects db changes then flushes the changes to the db at the end of a transaction
————— spring data repositories
21:19 do I need a spring data repository for each entity?
23:42 complex derived query example
Youtube Talk#