nordborg wrote:
I guess you'll at least need to post your query (HQL) as well. What do you mean with but the Query will still be showing it as gender?
gender is an Enum class and though the value of gender shows as "Male" or "Female", after the setParameter() is executed the query still showed
d.gender = :gender
Admin please close the topic as i resolved the issue myself..
all i had to do was change gender to gender.name()
if(gender != null) {
query = query.setParameter("gender", gender.name());
countQuery = countQuery.setParameter("gender", gender.name);
}