Show HN: Model Query, declare a JPA DTO projection once, query it many ways
Category: library
Tags: java, jpa, querydsl-alternative, annotation-processor, dto-projection
Score: 6.3/10 (Innovation: 5, Technical: 7, Documentation: 8, Utility: 5)
Model Query is a Java library that generates typed query definitions (QModel classes) from JPA entity projections via an annotation processor, enabling compile-safe, projection-first queries with filtering, paging, bulk writes, and vendor-specific SQL. It occupies a niche between Querydsl and Blaze-Persistence with a cleaner record-friendly API and rich documentation.
Target audience: backend Java developers using JPA/Hibernate and Spring Boot
Repository: https://github.com/rey5137/model-query · Java · Apache-2.0 · 2 stars
View on Hacker News