
		<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
			<channel>
				<title>MikeDaDev&#39;s Blog – stories, insights &amp; ideas</title>
				<link>https://mike.tungdadev.com/blog</link>
				<description>A personal space on the cloud where I document my programming journey, sharing lessons, insights and resources for fellow developers.</description>
				<language>en</language>
				<managingEditor>bthanhtung.ite@gmail.com (MikeDaDev)</managingEditor>
				<webMaster>bthanhtung.ite@gmail.com (MikeDaDev)</webMaster>
				<lastBuildDate>Sat, 01 Aug 2026 00:00:00 GMT</lastBuildDate>
				<atom:link href="https://mike.tungdadev.com/tags/jpa-hibernate/feed.xml" rel="self" type="application/rss+xml"/>
				
		<item>
			<guid>https://mike.tungdadev.com/blog/jooq-vs-hibernate-jpa-in-practice</guid>
			<title>jOOQ vs Hibernate JPA: JPA for writes, jOOQ for reports</title>
			<link>https://mike.tungdadev.com/blog/jooq-vs-hibernate-jpa-in-practice</link>
			<description>Native queries return List&lt;Object[]&gt;, and renaming a column blows up production. A comparison of Hibernate JPA and jOOQ&#39;s type-safe SQL, and how to run both in the same transaction.</description>
			<pubDate>Sat, 01 Aug 2026 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (MikeDaDev)</author>
			<category>jpa-hibernate</category><category>database</category><category>spring-boot</category>
		</item>
	
		<item>
			<guid>https://mike.tungdadev.com/blog/lombok-basic</guid>
			<title>Lombok in production: the @Data trap with JPA, @SneakyThrows and how to block them</title>
			<link>https://mike.tungdadev.com/blog/lombok-basic</link>
			<description>One log line on an entity annotated with @Data can trigger a whole cascade of queries. How Lombok rewrites the AST inside javac, the traps in @Data, @EqualsAndHashCode, @Builder and @SneakyThrows, and how to block them.</description>
			<pubDate>Sun, 03 Dec 2023 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (MikeDaDev)</author>
			<category>java</category><category>clean-code</category><category>jpa-hibernate</category>
		</item>
	
		<item>
			<guid>https://mike.tungdadev.com/blog/hibernate</guid>
			<title>Hibernate ORM under Spring Data JPA: dirty checking, readOnly, OSIV</title>
			<link>https://mike.tungdadev.com/blog/hibernate</link>
			<description>The database gets an UPDATE without a save() call, a read-only API eats all the RAM, and the connection pool hangs because of a slow client. The Hibernate mechanics behind each one, and how to deal with them.</description>
			<pubDate>Sat, 02 Dec 2023 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (MikeDaDev)</author>
			<category>jpa-hibernate</category><category>spring-boot</category><category>performance</category>
		</item>
	
		<item>
			<guid>https://mike.tungdadev.com/blog/criteria-api-in-hibernate</guid>
			<title>Criteria API in Hibernate 6: type-safe dynamic queries, no more string concatenation</title>
			<link>https://mike.tungdadev.com/blog/criteria-api-in-hibernate</link>
			<description>A search screen with 20 filters built by concatenating JPQL strings will sooner or later invite SQL injection. Here is how the Criteria API, Hibernate 6 SQM and Specification build type-safe dynamic queries.</description>
			<pubDate>Sun, 15 Oct 2023 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (MikeDaDev)</author>
			<category>jpa-hibernate</category><category>database</category><category>spring-boot</category>
		</item>
	
		<item>
			<guid>https://mike.tungdadev.com/blog/spring-data-jpa</guid>
			<title>Spring Data JPA: from repositories to N+1, @Transactional and locking</title>
			<link>https://mike.tungdadev.com/blog/spring-data-jpa</link>
			<description>A repository so concise that you forget Hibernate sits underneath, until you hit N+1 or a @Transactional that does not roll back. Notes on derived queries, projections, Specifications and locking.</description>
			<pubDate>Sat, 23 Sep 2023 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (MikeDaDev)</author>
			<category>jpa-hibernate</category><category>spring-boot</category><category>database</category>
		</item>
	
		<item>
			<guid>https://mike.tungdadev.com/blog/transactional-and-spring-aop</guid>
			<title>@Transactional and Spring AOP: proxies, propagation and the self-invocation trap</title>
			<link>https://mike.tungdadev.com/blog/transactional-and-spring-aop</link>
			<description>Added @Transactional but nothing rolls back, or getting UnexpectedRollbackException? How Spring AOP proxies manage transactions, plus propagation, isolation, common traps and custom aspects.</description>
			<pubDate>Wed, 20 Sep 2023 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (MikeDaDev)</author>
			<category>spring-boot</category><category>jpa-hibernate</category><category>database</category>
		</item>
	
		<item>
			<guid>https://mike.tungdadev.com/blog/spring-data-core-annotations</guid>
			<title>Spring Data core annotations: @Query, @Modifying, auditing and pagination</title>
			<link>https://mike.tungdadev.com/blog/spring-data-core-annotations</link>
			<description>A hand-written UPDATE query throws TransactionRequiredException? The shared Spring Data annotations (@Query, @Modifying, auditing), data mapping and pagination across JPA, MongoDB and Redis.</description>
			<pubDate>Sat, 09 Sep 2023 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (MikeDaDev)</author>
			<category>jpa-hibernate</category><category>spring-boot</category><category>database</category>
		</item>
	
		<item>
			<guid>https://mike.tungdadev.com/blog/many-to-many</guid>
			<title>@ManyToMany in JPA: why you should split it into two @OneToMany</title>
			<link>https://mike.tungdadev.com/blog/many-to-many</link>
			<description>Why does @ManyToMany with a List make Hibernate wipe the join table and INSERT everything again? How to split it into two @OneToMany through a Join Entity with @EmbeddedId and @MapsId.</description>
			<pubDate>Sat, 26 Aug 2023 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (MikeDaDev)</author>
			<category>jpa-hibernate</category><category>database</category><category>spring-boot</category><category>performance</category>
		</item>
	
		<item>
			<guid>https://mike.tungdadev.com/blog/onetomany-and-manytoone</guid>
			<title>@OneToMany and @ManyToOne: avoiding N+1, Cartesian products and the Lombok trap</title>
			<link>https://mike.tungdadev.com/blog/onetomany-and-manytoone</link>
			<description>A slow API because of N+1, an exploding heap because of a Cartesian product, a StackOverflowError because of @Data: the rules for using @OneToMany and @ManyToOne in JPA/Hibernate in production.</description>
			<pubDate>Sat, 12 Aug 2023 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (MikeDaDev)</author>
			<category>jpa-hibernate</category><category>performance</category><category>database</category>
		</item>
	
		<item>
			<guid>https://mike.tungdadev.com/blog/one-to-one-relationship</guid>
			<title>@OneToOne in JPA: why LAZY is ignored and 3 ways to fix it</title>
			<link>https://mike.tungdadev.com/blog/one-to-one-relationship</link>
			<description>You declared @OneToOne(fetch = LAZY), yet Hibernate still fires N+1 SELECT statements? The cause sits on the mappedBy side, and there are 3 fixes: @MapsId, a unidirectional mapping, and bytecode enhancement.</description>
			<pubDate>Sat, 29 Jul 2023 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (MikeDaDev)</author>
			<category>jpa-hibernate</category><category>performance</category><category>database</category><category>spring-boot</category>
		</item>
	
			</channel>
		</rss>
	