7
An evening with Querydsl Central PA Java Developers Mike Melusky @mrjavascript

An evening with querydsl

Embed Size (px)

Citation preview

Page 1: An evening with querydsl

An evening with Querydsl

Central PA Java DevelopersMike Melusky

@mrjavascript

Page 2: An evening with querydsl

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

Page 3: An evening with querydsl

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

Page 4: An evening with querydsl

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

Page 5: An evening with querydsl

Hasn’t this been done before?

JOOQ Free for open source databases

MyBatis Yank JDBI

Page 6: An evening with querydsl

Sample Application

Bookstore Application Data Model:

Book (bookName, isbn, author) Author (authorName)

Page 7: An evening with querydsl

Sample Application

Java 8 Spring Boot 1.2.5 Gradle

Code will be available on github.com/mrjavascript after this meeting.