Skip to main content

Java

AI Release Notes and PR Descriptions in Java: JGit, Spring AI and Gitea

Build a release-notes and pull-request description generator in Java: JGit reads real commits, plain code groups them by Conventional Commit type and computes the version bump, a Spring AI model writes one paragraph behind a guard that rejects invented hashes and PR numbers, and a Gitea client publishes idempotently. Tested on a real JGit repository with a stub model.

Quarkus LangChain4j vs Spring AI: Same AI Service Built Twice

The same support assistant (system prompt, one tool, RAG over three files) built with Quarkus 3.40 + LangChain4j 1.15 and Spring Boot 4.2 + Spring AI 2.1, run against a stub OpenAI server. Wire-format differences, Dev UI, startup and memory medians, a Quarkus native image, and a Spring native build that ran out of memory.

Java Modules (JPMS) for Working Developers: module-info, exports, opens and jdeps

Why the Java module system exists and how to read its errors: module-info.java, exports versus opens (with the exact InaccessibleObjectException text), requires transitive, services, split packages, automatic modules, the class path as the unnamed module, jdeps and jlink, every transcript captured on JDK 25 (Temurin 25.0.5.1).

Tool Calling with Small Local Models: Which Ollama Models Actually Follow Your Schema? (LangChain4j)

The same four MCP-served tools and twelve prompts run five times each against six small Ollama models through LangChain4j 1.24.0: 360 scored answers. One model got 60 of 60 right, a 3.2B model got half, and the failures have recognisable shapes (a wrapped call, a number sent as a string, a tool called when none was wanted) with a repair for one of them.

MyBatis with Spring Boot 4: Mappers, Dynamic SQL and Pagination

A first-meeting guide to MyBatis on Spring Boot 4.2: annotation and XML mappers, result maps (JOIN vs N+1), dynamic SQL, #{} vs ${}, PageHelper and its ThreadLocal trap, and @MybatisTest. Every SQL statement quoted was printed by a real run of the companion module.

Records and Value Objects in Hibernate 7: @Embeddable Records Done Right

How @Embeddable records behave in Hibernate 7.4.17, shown with captured SQL: the all-null rule (a null attribute never reaches your constructor), replace-not-mutate updates, why one removed element rewrites a whole Set, record equals vs database equality, a DDD Email value object, and why a record cannot be an @Entity.