Type safety is a desirable characteristic of both Java and Scala, but querying database objects in a type safe way in Java has always been clumsy. Scala helps us create type safe DSLs and this talk goes through how to use the Hibernate DSL API to create queries and criterias.
Event: http://www.devoxx.com/