Skip to main content

TODO

Ayman Patel

Ayman Patel

Back End Engineer @ Mastercard

TODO#

LanguageTopicDescriptionLinks
GeneralMocks vs StubsUndestanding difference between Mock and StubsMock vs Stubs
JavaSpring Security PatternsSpring Security PatternsYoutube Link
KotlinBootiful Kotlin in SpringBootiful Kotlin in SpringYoutube Link
SpringHTTP Client Connection in SpringCinnection pooling in SpringHTTPClient with Resttemplate and Baeldung's HTTPClient Connection management
Laravel, VueLaravel + VueSince Laravel was first backend technology to adopt Vue, IMHO Laravel seems to have best marriage with Vue
SQLSQL Procedures IRLTwitter photo of custom Twitter ProcedureLink

DOING#

LanguageTopicDescriptionLinks
JavaSpring Data JPA from 0-100 in 60 minutesSpring Data JPA from 0-100 in 60 minutesYoutube 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#