1

In EJBQL how can compare two date values; suppose

"Select e from Employee e where e.start_date > :start_date" If I set query parameter with setParameter("start_date", new Date());

An Exception occurs on running..

I wait for your suggestions

whoi
  • 3,281
  • 7
  • 36
  • 44

1 Answers1

2

Ok, I found solution sorry for bothering;

Rather I needed to use setParameter("start_date", new Date(), TemporalType.DATE)

whoi
  • 3,281
  • 7
  • 36
  • 44