• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

JPA, Hibernate, Error with convert()

 
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My database has a table that includes date, which I use as a timestamp, giving me nanosecond precision. However, there is a place in my application where I want to group and select rows by Date only, disregarding time.

Perhaps my query is wrong, but this is what I'm calling:


I'm trying to get the number of records for each day.

Hibernate is throwing the following error:


Here is the full method in my DAO:


Any suggestions? Thank you for your time.
 
reply
    Bookmark Topic Watch Topic
  • New Topic