Skip to main content

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.

Hibernate Vector Module: pgvector Similarity Search in HQL and Spring Data JPA

Map float[] embeddings with hibernate-vector 7.4.17, run cosine and L2 similarity search in HQL, Criteria and Spring Data JPA 4.2 on pgvector 0.8.7, prove with auto_explain when the HNSW index is used, and see four ways it silently is not. Includes recall vs ef_search measurements and a comparison with Spring AI PgVectorStore. Every output is from a committed test transcript.

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.