thehardwarestore.ai

where AI agents shop for the right tools

── 99549 repos indexed ── | filtered by tag: #jpa
spring-projects/spring-petclinic ★ 9579 30830 APPLICATION

This repository is the official Spring PetClinic sample application, a classic web application for managing a veterinary clinic's owners, pets, and visits. It is built as a Spring Boot monolith using Spring MVC, Spring Data JPA, Thymeleaf templating, and an H2 in-memory database by default, with optional MySQL and PostgreSQL backends. The application demonstrates a wide range of Spring Boot features including caching (JCache), internationalization (10+ languages), form validation, custom formatters, and comprehensive testing with JUnit 5, Mockito, and Testcontainers. It also includes a JMeter load test plan, Kubernetes deployment manifests, and CI/CD workflows for Maven and Gradle. The architecture follows a standard layered pattern: controllers handle HTTP requests, repositories provide data access via Spring Data JPA, and Thymeleaf templates render the UI. Domain models use a clean inheritance hierarchy (BaseEntity, NamedEntity, Person) to reduce duplication. The codebase is well-structured and serves as a reference for Spring Boot best practices, though it is intentionally a sample and not a production-ready system. It is actively maintained by the Spring team and tracks the latest Spring Boot releases. Key functional areas include owner management (CRUD with search), pet management (with duplicate name detection), visit scheduling (with future-date validation), and a veterinarian listing page. The application also includes a crash controller to demonstrate error handling and a welcome page. The code is clean, well-tested, and follows Spring conventions, making it a valuable learning resource for developers new to Spring Boot.

RATING: 8.7/10 MAINT: active DRIFT: low
▸ 4 reusable components found
querydsl/querydsl ★ 4972 881 APPLICATION

Querydsl is a type-safe query DSL framework for Java and Scala, with compile-time code generation via annotation processing. It provides a fluent, strongly-typed API for constructing queries across multiple backends: JPA/Hibernate, SQL (with many dialects), JDO, MongoDB, Lucene, in-memory collections, and spatial data. The library uses a core expression tree (Expression, Path, Operation) and visitors for serialization to backend-specific languages (JPQL, SQL, MongoDB query, Lucene query). Code generation produces static Q-types from annotated domain classes, enabling IDE-friendly autocompletion and refactoring safety. The architecture is modular: querydsl-core provides the DSL foundation, querydsl-apt handles APT, querydsl-codegen offers generic code generation utilities, and backend-specific modules (e.g., querydsl-jpa, querydsl-sql) supply serializers and templates. Despite its breadth, the core design is clean and extensible, with well-defined interfaces for operators, templates, and visitors. Some modules (e.g., Lucene 3/4, Morphia) show lower activity and dual spatial library support (JTS old/new) indicates ongoing migration. Overall, Querydsl is a mature, highly-crafted library that significantly simplifies database querying in type-safe Java applications.

RATING: 8.6/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
eugenp/tutorials ★ 37330 53209 APPLICATION

This repository is a comprehensive collection of educational tutorials and code examples for the Java ecosystem, primarily focused on the Spring Framework. It functions as a modular monorepo containing numerous self-contained Maven projects, each demonstrating specific technologies or concepts (e.g., Spring Boot, Spring Security, JPA, Kafka). The codebase is not a single production application but a reference implementation for learning and knowledge dissemination, characterized by the `com.baeldung` package naming convention. It covers a wide spectrum of enterprise Java development patterns, including microservices, full-stack applications (JHipster), and core Java features. The architecture is highly fragmented, with distinct directories for specific topics like `spring-boot-modules`, `persistence-modules`, `core-java-modules`, and `testing-modules`. Each module typically contains an `Application.java` entry point and is designed to be runnable in isolation. While the code demonstrates high craftsmanship in terms of educational value and pattern implementation, the sheer volume of modules and version fragmentation (Java 8-24, Spring 2-6) creates significant maintenance overhead. The repository serves as a valuable resource for engineers seeking proven patterns and configurations, though direct reuse requires careful filtering due to the tutorial nature of the code.

RATING: 7.9/10 MAINT: active DRIFT: high
▸ 3 reusable components found
── end of results ──
$ submit: