Skip to main content

AI

10 AI Prompts for Hibernate and JPA

10 copy-paste AI prompts for Hibernate and JPA development. Covers entity relationship design, fixing LazyInitializationException, writing JPQL queries, generating Flyway migrations, second-level cache, bulk operations, soft delete, auditing with @EntityListeners, Criteria API Specifications, and full entity model reviews.

10 AI Prompts to Review and Improve Java Code Quality

10 copy-paste AI prompts for reviewing and improving Java code quality. Covers SOLID violations, thread-safety bugs, virtual thread carrier pinning, N+1 query patterns, resource leaks, exception handling, null safety, logging quality, and full quality audits. Works in Claude, ChatGPT, Gemini, and Cursor.

10 AI Prompts for Spring Boot Development

10 copy-paste AI prompts for Spring Boot development. Covers scaffolding REST endpoints, configuring Spring Security JWT, debugging autoconfiguration, global exception handling, production tuning, Actuator health checks, CORS, caching, and migrating from Spring Boot 2.x to 3.x. Works in Claude, ChatGPT, Gemini, and Cursor.

Implementing Vector Embeddings and Semantic Search in Pure Java

A complete implementation of a semantic search engine in pure Java — no external libraries. Covers TF-IDF vectorisation, cosine similarity, and document ranking by meaning. Explains the mathematics behind vector embeddings, how they power RAG and AI search systems, and provides a working query engine with annotated code and sample output. The same architecture used by Pinecone, Weaviate, and Elasticsearch — built from scratch.

Building a Neural Network from Scratch in Pure Java (No Libraries)

A complete, from-scratch implementation of a feedforward neural network in pure Java — no TensorFlow, no DL4J, no external libraries. Covers the Neuron model, forward propagation, sigmoid activation, backpropagation with gradient descent, and trains the network to learn the XOR function. Every line of code is annotated with the underlying mathematics so you understand exactly what the network is doing at each step.