Hi all.
I'm using QueryDSL2.9.x and PostgreSQL9.x .
My table and data is:
create table foo (
id int4,
dt timestamp with time zone
)
insert into foo (id,dt) values (1, '2013-11-10T12:34:56');
insert into foo (id,dt) values (1, '2014-03-04T12:34:56');
I need a SQL like below:
select id from off where dt::date in ('2013-12-08', '2014-03-04'....(and other date strings) );
The point is that the column type of "dt" is timestamp but I must compare it as "date" without hour, minute, seconds.
query.from(qFoo).where(
qFoo.dt.in ....? what should I coding?...);
I have read the reference manual
http://www.querydsl.com/static/querydsl/2.9.0/reference/html/ch03.htmlbut could not solve my problem.
I will be happy if there were some sample reference book :-)