• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate expression query week of the year

 
Alessandro Ilardo
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I'm using JBoss 4.0.5 and it built in Hibernate 3. Into a POJO I have the following query, which should returns me all objects having the same district id and matching week of the year:



from the ejb, I call it using this code


PROBLEM
From the log something doesn't look right, example:

...
Week of the year after XML rules have been applied -> 48
...
[getShift] Week of the year for Shift ID 31 is 49
[getShift] Week of the year for Shift ID 25 is 49
...

All objects which I got back from Hibernate, come with the week of the year greater then my parameter.

Thanks in advance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic