The Joy of Queries
Mark Paluch - Broadcom
Do you remember your very first query? Yeah, me neither. But chances are, it looked a lot like a string: Your first taste of “programming by strings”. Since then, Querydsl, JPA, jOOQ, and others have tried to ease the pain with metamodels through code generation, providing type safety and maintainability. They promise fewer surprises during refactoring in exchange for complex build arrangements.
Has it been worth it?
What if you could achieve more by taking things away? What if Java itself already offered the tools to express our intents without build-time magic? But beware! Every good show needs some degree of sorcery, and it would be really disappointing if the magician revealed their tricks beforehand.
Leave stringly-typed programming behind. Make your queries more expressive, refactoring-safe, and refreshingly simple.
