<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Jpa on wid's blog</title><link>https://wid-blog.github.io/en/tags/jpa/</link><description>Recent content in Jpa on wid's blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 06 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://wid-blog.github.io/en/tags/jpa/index.xml" rel="self" type="application/rss+xml"/><item><title>JPA Persistence Context and Dirty Checking</title><link>https://wid-blog.github.io/en/posts/tech/language/jpa-persistence-context-dirty-checking/</link><pubDate>Mon, 06 Jul 2026 00:00:00 +0000</pubDate><guid>https://wid-blog.github.io/en/posts/tech/language/jpa-persistence-context-dirty-checking/</guid><description>A managed entity from findById gets UPDATEd through dirty checking, with no save() call. The three entity states, how snapshot comparison works, what save() actually does, and the persistence context lifetime that all of it depends on.</description></item><item><title>Optimistic and Pessimistic Locking</title><link>https://wid-blog.github.io/en/posts/tech/database/optimistic-vs-pessimistic-lock/</link><pubDate>Sun, 01 Oct 2023 00:00:00 +0000</pubDate><guid>https://wid-blog.github.io/en/posts/tech/database/optimistic-vs-pessimistic-lock/</guid><description>A transaction gives atomicity, a lock gives serialization — they aren&amp;rsquo;t substitutes. How pessimistic and optimistic locking cover the Lost Update that an isolation level&amp;rsquo;s plain reads don&amp;rsquo;t, and how to choose between them.</description></item></channel></rss>