{"id":4061,"date":"2026-12-03T11:38:37","date_gmt":"2026-12-03T16:38:37","guid":{"rendered":"https:\/\/www.mymiller.name\/wordpress\/?p=4061"},"modified":"2026-11-20T23:42:52","modified_gmt":"2026-11-21T04:42:52","slug":"hibernate-8-jakarta-persistence-4-graph-flushing-entityagent-postgresql-rls","status":"publish","type":"post","link":"https:\/\/www.mymiller.name\/wordpress\/java\/hibernate-8-jakarta-persistence-4-graph-flushing-entityagent-postgresql-rls\/","title":{"rendered":"Hibernate 8 and Jakarta Persistence 4.0: Graph-Based Flushing, EntityAgent, and Native PostgreSQL Row-Level Security"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you have spent enough years maintaining enterprise JPA applications, two scars are probably etched into your memory: staring at a baffling <code>ConstraintViolationException<\/code> caused by Hibernate flushing a <code>DELETE<\/code> <em>after<\/em> an <code>INSERT<\/code> on the same unique key, and realizing halfway through a 200,000-row batch job that your <code>EntityManager<\/code> persistence context just ate 4 GB of heap.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On November 12, 2026, <strong>Hibernate ORM <code>8.0.0.CR1<\/code><\/strong> landed alongside <strong>Hibernate Reactive <code>5.1.0.CR1<\/code><\/strong>\u2014implementing <strong>Jakarta Persistence 4.0<\/strong> and <strong>Jakarta Data 1.1<\/strong> while attacking both of those classic pain points directly in the core engine. Even better for day-to-day productivity, <strong>IntelliJ IDEA 2026.3<\/strong> just shipped a dedicated <strong>Hibernate 8 Debugger<\/strong> with live HQL replay and automatic N+1 query detection.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this deep dive\u2014building on our earlier <code>Spring Databases<\/code> posts on <a href=\"https:\/\/www.mymiller.name\/wordpress\/spring_databases\/spring-data-jpa-java-records-the-ultimate-duo-for-clean-fast-query-projections\/\">Spring Data JPA &amp; Java Records<\/a> and JPA Auditing\u2014we will unpack <code>EntityAgent<\/code>, see how Hibernate 8&#8217;s default <strong>graph-based flush coordinator<\/strong> kills ordering bugs, wire up <strong>native PostgreSQL Row-Level Security (RLS)<\/strong> for airtight multi-tenancy, and wrap up with a practical sidebar on <strong>PostgreSQL 19&#8217;s new built-in <code>REPACK (CONCURRENTLY)<\/code><\/strong> command.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Jakarta Persistence 4.0: <code>EntityAgent<\/code> and <code>Statement<\/code> vs. <code>TypedQuery<\/code><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For over a decade, Hibernate developers who needed lightweight, zero-dirty-checking persistence for batch pipelines or high-throughput REST endpoints reached for Hibernate&#8217;s proprietary <code>StatelessSession<\/code>. <strong>Jakarta Persistence 4.0<\/strong> standardizes that exact concept across the entire specification as <strong><code>EntityAgent<\/code><\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Capability<\/th><th>Classic <code>EntityManager<\/code><\/th><th>New JPA 4.0 <code>EntityAgent<\/code><\/th><\/tr><\/thead><tbody><tr><td><strong>First-Level Cache \/ Persistence Context<\/strong><\/td><td>Stateful; tracks managed entities and runs dirty checking on flush<\/td><td><strong>Stateless<\/strong>; no automatic dirty checking or managed entity graph in memory<\/td><\/tr><tr><td><strong>SQL Execution Timing<\/strong><\/td><td>Deferred until flush\/commit<\/td><td>Explicit, immediate <code>insert()<\/code>, <code>update()<\/code>, <code>delete()<\/code>, <code>upsert()<\/code><\/td><\/tr><tr><td><strong>Lazy Loading<\/strong><\/td><td>Transparent proxies within open session<\/td><td>Explicit fetching (<code>fetch(...)<\/code> \/ entity graphs)\u2014eliminates accidental N+1 cascades<\/td><\/tr><tr><td><strong>Best Fit<\/strong><\/td><td>Rich domain models with complex object graphs<\/td><td>Batch ETL, high-throughput microservices, stateless Spring REST\/gRPC handlers<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">JPA 4.0 also fixes one of JPA&#8217;s oldest API paper cuts by cleanly separating <strong>read queries<\/strong> (<code>TypedQuery<\/code>) from <strong>mutating bulk statements<\/strong> (<code>Statement<\/code> \/ <code>StatementOrTypedQuery<\/code>), adds <code>@PostCreate<\/code> \/ <code>@PreClose<\/code> persistence-unit lifecycle callbacks, supports package- and module-level <code>@EntityListeners<\/code> (in <code>package-info.java<\/code> and <code>module-info.java<\/code>), and introduces programmatic SQL <code>ResultSet<\/code> mappings.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>package com.ghostprogrammer.persistence;\n\nimport jakarta.persistence.EntityAgent;\nimport jakarta.persistence.EntityManagerFactory;\nimport jakarta.persistence.Statement;\n\nimport java.time.Instant;\nimport java.util.List;\n\npublic class InvoiceBatchArchiver {\n\n    private final EntityManagerFactory emf;\n\n    public InvoiceBatchArchiver(EntityManagerFactory emf) {\n        this.emf = emf;\n    }\n\n    public int archiveSettledInvoices(List&lt;InvoiceRecord&gt; records, Instant cutoff) {\n        \/\/ Stateless EntityAgent: zero persistence-context bloat across large batches\n        try (EntityAgent agent = emf.createEntityAgent()) {\n            agent.getTransaction().begin();\n\n            for (InvoiceRecord record : records) {\n                agent.insert(record);\n            }\n\n            \/\/ JPA 4.0 cleanly separates mutating Statements from read-only TypedQuery\n            Statement cleanup = agent.createStatement(\n                    \"delete from PendingInvoice p where p.settledAt &lt; :cutoff\");\n            cleanup.setParameter(\"cutoff\", cutoff);\n            int removed = cleanup.execute();\n\n            agent.getTransaction().commit();\n            return removed;\n        }\n    }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Alongside JPA 4.0, Hibernate 8 implements <strong>Jakarta Data 1.1<\/strong> via Hibernate Data Repositories\u2014complete with compile-time static queries, <code>@Select<\/code> projections, and stateful\/async repository support.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. Goodbye Ordering Hacks: Graph-Based Flush Coordination (Default in 8.0)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Historically, Hibernate flushed pending operations in a fixed heuristic order (<code>INSERT<\/code>s \u2192 <code>UPDATE<\/code>s \u2192 collection deletions \u2192 collection inserts \u2192 <code>DELETE<\/code>s). That heuristic worked 95% of the time and blew up spectacularly the other 5%\u2014most infamously when replacing a child entity sharing a <code>UNIQUE<\/code> natural key, forcing developers to sprinkle ugly manual <code>entityManager.flush()<\/code> calls in the middle of business logic.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In <strong>Hibernate 8<\/strong>, <strong>graph-based flush coordination is now the default<\/strong>. Before emitting SQL, Hibernate builds a <strong>relational constraint dependency graph<\/strong> modeling:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Foreign key dependencies across entities<\/li>\n\n\n\n<li>Unique constraints<\/li>\n\n\n\n<li>Secondary and optional tables<\/li>\n\n\n\n<li>Mixed entity and collection mutations<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Hibernate topologically sorts the graph so deletes, updates, and inserts execute in an order that satisfies your actual database constraints\u2014no manual <code>.flush()<\/code> gymnastics required. <em>(If you encounter a legacy edge case during migration, <code>hibernate.flush.queue.type=legacy<\/code> remains available temporarily as a fallback toggle.)<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Bonus Core-Engine Upgrades in Hibernate 8<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Bulk Subselect Fetching for To-One Associations (<code>FetchMethod.BY_SUBQUERY<\/code>):<\/strong> Extends subselect batch loading beyond collections to <code>@ManyToOne<\/code> \/ <code>@OneToOne<\/code> associations, curbing N+1 query storms without massive <code>JOIN<\/code> row multiplication.<\/li>\n\n\n\n<li><strong>Opt-In Runtime Bidirectionality Management:<\/strong> Enabling <code>hibernate.bidirectionality_management=true<\/code> automatically synchronizes inverse associations during flush preparation <em>without<\/em> triggering lazy collection initialization.<\/li>\n\n\n\n<li><strong><code>@Filter<\/code> &amp; <code>@SQLRestriction<\/code> on To-One Associations:<\/strong> Now supported directly on <code>@ManyToOne<\/code> and <code>@OneToOne<\/code> relationships.<\/li>\n\n\n\n<li><strong>Graduated JSON\/XML Functions &amp; Skinny <code>hibernate-bom<\/code>:<\/strong> Database JSON\/XML query functions and SQL AST\/translator <code>@SPI<\/code> contracts graduate out of incubation, joined by a new <code>StatementObserver<\/code> hook and skinny BOM.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">3. Native PostgreSQL Row-Level Security (RLS) for Multi-Tenancy<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Discriminator-based multi-tenancy (<code>@TenantId<\/code>) in Hibernate 6 and 7 was already convenient\u2014Hibernate appended <code>AND tenant_id = ?<\/code> automatically to HQL and Criteria queries. The catch? Any native SQL query, reporting view, or forgotten ad-hoc join bypassed Hibernate&#8217;s filter, turning one missing <code>WHERE<\/code> clause into a cross-tenant data leak.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Hibernate 8 integrates discriminator multi-tenancy directly with native database Row-Level Security (RLS)<\/strong> on <strong>PostgreSQL<\/strong>, <strong>Db2<\/strong>, <strong>SQL Server<\/strong>, and <strong>CockroachDB<\/strong>\u2014enforcing tenant isolation inside PostgreSQL itself so <em>not even a buggy native query<\/em> can read another tenant&#8217;s rows.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Enable PostgreSQL RLS Policy<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE TABLE customer_orders (\n    id          UUID PRIMARY KEY,\n    tenant_id   TEXT NOT NULL,\n    order_total NUMERIC(12, 2) NOT NULL\n);\n\nALTER TABLE customer_orders ENABLE ROW LEVEL SECURITY;\nALTER TABLE customer_orders FORCE ROW LEVEL SECURITY;\n\nCREATE POLICY tenant_isolation_policy ON customer_orders\n    USING (tenant_id = current_setting('app.current_tenant', true))\n    WITH CHECK (tenant_id = current_setting('app.current_tenant', true));<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Declare <code>@TenantId<\/code> in Java and Wire the Tenant Context<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>@Entity\n@Table(name = \"customer_orders\")\npublic class CustomerOrder {\n\n    @Id\n    private UUID id;\n\n    @TenantId\n    @Column(name = \"tenant_id\", nullable = false, updatable = false)\n    private String tenantId;\n\n    @Column(name = \"order_total\", nullable = false)\n    private BigDecimal orderTotal;\n\n    \/\/ constructors, getters\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">With Hibernate 8&#8217;s RLS integration active, your <code>CurrentTenantIdentifierResolver<\/code> supplies the tenant ID (for example, extracted from a Spring Security JWT claim or a Java 25 <code>ScopedValue<\/code>), and Hibernate binds the PostgreSQL session\/transaction variable (<code>SET LOCAL app.current_tenant = ...<\/code>) automatically whenever a connection participates in a tenant transaction. Defense-in-depth at both the ORM layer and the PostgreSQL storage engine\u2014zero extra boilerplate per query.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4. Database Operations Sidebar: PostgreSQL 19\u2019s Built-In <code>REPACK (CONCURRENTLY)<\/code><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you run multi-tenant Hibernate workloads on PostgreSQL, there is another huge database milestone making waves right now: <strong>PostgreSQL 19&#8217;s native <code>REPACK<\/code> command<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Because PostgreSQL uses MVCC, heavy <code>UPDATE<\/code> and <code>DELETE<\/code> churn leaves behind dead tuples. Autovacuum marks that space reusable <em>internally<\/em>, but it never returns disk space to the operating system. Historically, reclaiming OS disk space meant choosing between <code>VACUUM FULL<\/code> (which takes an <code>ACCESS EXCLUSIVE<\/code> lock and freezes all production traffic) or installing external extensions like <code>pg_repack<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PostgreSQL 19 brings online table compaction straight into core Postgres:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-- Reclaim table bloat and return space to the OS online with minimal locking\nREPACK CONCURRENTLY customer_orders;\n\n-- Reclaim space AND physically cluster rows by tenant\/date index online\nREPACK CONCURRENTLY customer_orders USING INDEX idx_customer_orders_tenant_created;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Paired with PostgreSQL 19&#8217;s <strong>parallel autovacuum index cleanup<\/strong> and <strong><code>pg_plan_advice<\/code><\/strong> for stabilizing execution plans without code changes, high-churn Spring + Hibernate PostgreSQL tables become dramatically easier to operate at scale.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Hibernate 8 is far more than a routine Jakarta EE version bump. Between stateless <code>EntityAgent<\/code> batch performance, default graph-based flush ordering that ends manual <code>.flush()<\/code> hacks, native PostgreSQL Row-Level Security for multi-tenancy, and IntelliJ IDEA 2026.3&#8217;s new Hibernate 8 Debugger, the Java persistence stack is sharper and safer than it has ever been. Note that Spring Boot 4.2 currently ships on Hibernate 7.4 (<code>JPA 3.2<\/code>), so test Hibernate <code>8.0.0.CR1<\/code> in sandbox branches now as Jakarta EE 12 and next-generation Spring Data integration come into focus.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hibernate ORM 8.0.0.CR1 brings Jakarta Persistence 4.0&#8217;s stateless EntityAgent, separated Statement vs. TypedQuery APIs, default graph-based flush ordering, and native PostgreSQL Row-Level Security\u2014plus a look at PostgreSQL 19&#8217;s built-in REPACK (CONCURRENTLY).<\/p>\n","protected":false},"author":1,"featured_media":4072,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[280,435],"tags":[480,508,478,506,319],"series":[],"class_list":["post-4061","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","category-spring_databases","tag-database","tag-hibernate","tag-jpa","tag-postgresql","tag-spring"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2026\/11\/hibernate-8-jakarta-persistence-4-rls-featured.jpg?fit=1376%2C768&ssl=1","jetpack-related-posts":[{"id":3185,"url":"https:\/\/www.mymiller.name\/wordpress\/java_tips\/java-tips-part-3\/","url_meta":{"origin":4061,"position":0},"title":"Java Tips Part 3","author":"Jeffery Miller","date":"August 19, 2026","format":false,"excerpt":"Continuing my Java Tips from experience that I have learned from code reviews to different programming tasks. Tip 11: Use Hibernate Statistics Now, this is only for your development profiles\/environments, not for production. Hibernate has built-in statistics on your queries. This will break down how much time is spent along\u2026","rel":"","context":"In &quot;Java Tips&quot;","block_context":{"text":"Java Tips","link":"https:\/\/www.mymiller.name\/wordpress\/category\/java_tips\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2021\/12\/sam-dan-truong-rF4kuvgHhU-unsplash-scaled-e1640791434235.jpg?fit=640%2C427&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2021\/12\/sam-dan-truong-rF4kuvgHhU-unsplash-scaled-e1640791434235.jpg?fit=640%2C427&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2021\/12\/sam-dan-truong-rF4kuvgHhU-unsplash-scaled-e1640791434235.jpg?fit=640%2C427&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":3502,"url":"https:\/\/www.mymiller.name\/wordpress\/spring_databases\/spring-data-jpa-for-dummies-persisting-data-like-a-pro\/","url_meta":{"origin":4061,"position":1},"title":"Spring Data JPA for Dummies: Persisting Data Like a Pro","author":"Jeffery Miller","date":"July 28, 2026","format":false,"excerpt":"Ever feel bogged down by writing tons of code just to interact with your database? If you're a Java developer working with relational databases, Spring Data JPA is your new best friend. This blog post will give you a beginner-friendly introduction to Spring Data JPA, showing you how to save\u2026","rel":"","context":"In &quot;Spring Databases&quot;","block_context":{"text":"Spring Databases","link":"https:\/\/www.mymiller.name\/wordpress\/category\/spring_databases\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/06\/binary-2904980_1280.jpg?fit=1200%2C674&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/06\/binary-2904980_1280.jpg?fit=1200%2C674&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/06\/binary-2904980_1280.jpg?fit=1200%2C674&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/06\/binary-2904980_1280.jpg?fit=1200%2C674&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/06\/binary-2904980_1280.jpg?fit=1200%2C674&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":3840,"url":"https:\/\/www.mymiller.name\/wordpress\/spring_databases\/speedy-testing-with-h3-your-in-memory-powerhouse-for-spring-boot-unit-tests\/","url_meta":{"origin":4061,"position":2},"title":"Speedy Testing with H3: Your In-Memory Powerhouse for Spring Boot Unit Tests","author":"Jeffery Miller","date":"September 18, 2026","format":false,"excerpt":"Unit testing is the bedrock of robust software. When it comes to testing your Spring Boot applications that interact with a database, spinning up a full-fledged database instance for every test can be time-consuming and resource-intensive. This is where in-memory databases like H3 (HyperSQL Database Engine) shine. H3 is a\u2026","rel":"","context":"In &quot;Spring Databases&quot;","block_context":{"text":"Spring Databases","link":"https:\/\/www.mymiller.name\/wordpress\/category\/spring_databases\/"},"img":{"alt_text":"","src":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/04\/big-data-7216839_1280-png.avif","width":350,"height":200,"srcset":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/04\/big-data-7216839_1280-png.avif 1x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/04\/big-data-7216839_1280-png.avif 1.5x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/04\/big-data-7216839_1280-png.avif 2x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/04\/big-data-7216839_1280-png.avif 3x"},"classes":[]},{"id":3249,"url":"https:\/\/www.mymiller.name\/wordpress\/java_tips\/java-tips-part-5\/","url_meta":{"origin":4061,"position":3},"title":"Java Tips Part 5","author":"Jeffery Miller","date":"August 19, 2026","format":false,"excerpt":"Tip 21: Use Prepared Statements When working with JPA\/Hibernate make use of Prepared Statements that can be reused. Basically, I'm saying do not do the following: Query query = JPA.em().createNativeQuery(\"select count(*) from user u inner join\" + \"address a where a.user_id=u.id and a.city='\" + city + \"'\"); BigInteger val =\u2026","rel":"","context":"In &quot;Java Tips&quot;","block_context":{"text":"Java Tips","link":"https:\/\/www.mymiller.name\/wordpress\/category\/java_tips\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2021\/12\/sam-dan-truong-rF4kuvgHhU-unsplash-scaled-e1640791434235.jpg?fit=640%2C427&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2021\/12\/sam-dan-truong-rF4kuvgHhU-unsplash-scaled-e1640791434235.jpg?fit=640%2C427&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2021\/12\/sam-dan-truong-rF4kuvgHhU-unsplash-scaled-e1640791434235.jpg?fit=640%2C427&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":3954,"url":"https:\/\/www.mymiller.name\/wordpress\/spring-batch\/architecting-batch-systems-with-spring-boot-4-0-and-spring-framework-7-0\/","url_meta":{"origin":4061,"position":4},"title":"Architecting Batch Systems with Spring Boot 4.0 and Spring Framework 7.0","author":"Jeffery Miller","date":"April 20, 2026","format":false,"excerpt":"With the release of Spring Boot 4.0 and Spring Framework 7.0, the batch processing landscape has evolved to embrace Java 25, Jakarta EE 11, and built-in resilience patterns. This guide provides a professional architectural blueprint for setting up a high-performance Spring Batch server. 1. Technical Baseline Java: 17 (Baseline) \/\u2026","rel":"","context":"In &quot;Spring Batch&quot;","block_context":{"text":"Spring Batch","link":"https:\/\/www.mymiller.name\/wordpress\/category\/spring-batch\/"},"img":{"alt_text":"","src":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/12\/Gemini_Generated_Image_mmtkyammtkyammtk.avif","width":350,"height":200,"srcset":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/12\/Gemini_Generated_Image_mmtkyammtkyammtk.avif 1x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/12\/Gemini_Generated_Image_mmtkyammtkyammtk.avif 1.5x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/12\/Gemini_Generated_Image_mmtkyammtkyammtk.avif 2x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/12\/Gemini_Generated_Image_mmtkyammtkyammtk.avif 3x"},"classes":[]},{"id":3471,"url":"https:\/\/www.mymiller.name\/wordpress\/spring_databases\/spring-jpa-auditing\/","url_meta":{"origin":4061,"position":5},"title":"Spring JPA Auditing","author":"Jeffery Miller","date":"September 18, 2026","format":false,"excerpt":"Simplifying Entity Auditing with Spring Data JPA Annotations Keeping track of who created and modified your entities is crucial for various purposes, including audit trails, security, and data lineage. Spring Data JPA offers a convenient and efficient way to achieve this through dedicated annotations: @CreatedBy, @LastModifiedBy, @CreatedDate, and @LastModifiedDate. Leveraging\u2026","rel":"","context":"In &quot;Spring Databases&quot;","block_context":{"text":"Spring Databases","link":"https:\/\/www.mymiller.name\/wordpress\/category\/spring_databases\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/02\/audit-4190944_640.jpg?fit=640%2C377&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/02\/audit-4190944_640.jpg?fit=640%2C377&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/02\/audit-4190944_640.jpg?fit=640%2C377&ssl=1&resize=525%2C300 1.5x"},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/posts\/4061","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/comments?post=4061"}],"version-history":[{"count":1,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/posts\/4061\/revisions"}],"predecessor-version":[{"id":4082,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/posts\/4061\/revisions\/4082"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/media\/4072"}],"wp:attachment":[{"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/media?parent=4061"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/categories?post=4061"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/tags?post=4061"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/series?post=4061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}