alhomaidat.hashnode.devThe @Transactional Self-Invocation Trap: When Your Transactions Aren't Actually TransactionsYou've probably written a Spring service method, slapped @Transactional on it, and called it from another method in the same class. You ran your tests. Everything passed. You deployed to prod. And then, one day, you discover that a transaction that s...Jan 29·4 min read
alhomaidat.hashnode.devWhy mappedBy Matters More Than You ThinkYou've probably seen JPA tutorials that mention mappedBy, tried your code without it, watched it work perfectly fine, and thought: "Why bother?" I get it. The relationship looks correct. The data saves. Everything seems fine. But here's the thing wha...Jan 16·3 min read
alhomaidat.hashnode.devSingleton vs Prototype in Spring: A Practical GuideI was explaining Spring bean scopes to a colleague yesterday, and it hit me this is one of those concepts that seems confusing until you see it in action. Once it clicks, you wonder why it ever seemed complicated. Let me break it down with real examp...Oct 31, 2025·4 min read