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
Post a Comment