
Enforcing JSON Schema structured output with Gemini API
Enforce strict JSON Schema output on gemini-3.5-flash-lite with Google GenAI SDK responseJsonSchema to eliminate retry costs and parse safely in Kotlin.

Enforce strict JSON Schema output on gemini-3.5-flash-lite with Google GenAI SDK responseJsonSchema to eliminate retry costs and parse safely in Kotlin.

Fix ScopeNotActiveException and missing SecurityContext errors in Spring Data JPA AuditorAware when persisting entities from schedulers and async threads.

Avoid unique constraint violations on soft-deleted rows with PostgreSQL partial unique indexes and build an admin trash bin using Spring JDBC native SQL.

Prevent lost updates in back-office admin screens using JPA @Version optimistic locking, hidden form fields, and a conflict UI that preserves unsaved edits.

Adopt RFC 9562 UUIDv7 as a JPA entity primary key with Hibernate 6.2+ to avoid UUIDv4 B-Tree page splits, backed by 1M-row PostgreSQL 17 benchmarks.

Stop LLM hallucinations in legal discovery by pairing deterministic server normalization with real-time 3-tuple cross-checks against a public precedent API.

Spring AI 2.0.1 drops Gemini Search Grounding metadata during ChatResponse mapping. Bypass it behind a domain interface using the official Google GenAI SDK.

Store immutable external API JSON responses in PostgreSQL and reparse tens of thousands of records locally with zero API quota usage when parser rules change.

Enforce 1-request-per-second limits across multiple Spring Boot instances using Redis Lua scripts, Retry-After exponential backoff, and URI key masking.

How to build a JSON cursor checkpoint state machine with REQUIRES_NEW transaction isolation so large external API batch jobs resume safely after failures.