--
You received this message because you are subscribed to the Google Groups "Querydsl" group.
To unsubscribe from this group and stop receiving emails from it, send an email to querydsl+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Query<Person> query = queryFactory.select(person)
.where(SQLExpressions.datediff(DatePart.year,
Expressions.asDate(person.dateOfBirth),
Expressions.asDate(new Coalesce<Date>(Date.class, person.dateOfDeath, new DateConstant<Date>(now)).as("ageDate")))
.lt(55));