hibernate - How Comparing Dates in HQL? -


i compare 2 dates in hql query. have like:

from teamplayer tp  tp.team = :team , tp.playerstartdate < season.seasonstart; 

could 1 me ?

thanks in advance

answer after comments:

the issue was:

from teamplayer tp  tp.team = :team , tp.playerstartdate < season.seasonstart; 

the result user wants: team players of specified team playerstartdate lower seasonstart.

i've adviced apply named parameter instead season.seasonstart because value in query not valued , because constant , use named parameter map constant in query.

in way result ok.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -