QueryDSL - select rows with date from timestamp column -
using querydsl - there way select rows date timestamp other using .between? query:
where convert(date, mytimestamp) = '2013-02-28'
you can either use between or custom expression if use querydsl sql
something this
dateexpression<date> converted = datetemplate.create(date.class, "convert(date, {0})", mytimestamp);
Comments
Post a Comment