I applied the following patch for
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1787
to add date_trunc for the PostgreSQL dialect.
It works for me, but I have to patch hibernate every time I upgrade JBoss AS.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094176#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...