Upload
mike-melusky
View
461
Download
0
Embed Size (px)
Citation preview
An evening with Querydsl
Central PA Java DevelopersMike Melusky
@mrjavascript
About the Speaker
Michael Melusky Java / Spring / JetBrains enthusiast Software Engineer for Audacious Inquiry in Baltimore, MD (http://ainq.com/
) Professor at Penn State University Instructor at ITT Technical Institute
What is Querydsl?
Querydsl is a query framework for Java which generates type safe queries across multiple platforms JPA JDO JDBC Lucene Hibernate Search (HQL) MongoDB Collections RDFBean
What is Querydsl?
With a domain model changing type-safety yields to benefits with software development Domain changes are reflected in queries Autocomplete in query construction makes query construction faster and
safer This project was originally started by the Mysema company (Helsinki,
Finland) out of the need to maintain HQL queries in a type-safe way Requires string concatenation Hard to read code Unsafe references to domain types and properties via Strings
Hasn’t this been done before?
JOOQ Free for open source databases
MyBatis Yank JDBI
Sample Application
Bookstore Application Data Model:
Book (bookName, isbn, author) Author (authorName)
Sample Application
Java 8 Spring Boot 1.2.5 Gradle
Code will be available on github.com/mrjavascript after this meeting.