5

I want to write query something like :-

Select u from bookmaster u order by Year(b.createDate),Month(b.createDate),day(b.createDate) 

How do i do this in JPQL? Are there any date parsing functions available?

TCM
  • 16,780
  • 43
  • 156
  • 254

1 Answers1

5

Well Brandizzi, theese function are in your list, but checked as 'not standard' I've tried use them without success.

Here is an alternative: JPA Query MONTH/YEAR functions

Community
  • 1
  • 1
Welington Veiga
  • 151
  • 1
  • 7