This is my HQL Query
Query query = getCurrentSession().createQuery(
"from User where username = :usersName ");
query.setParameter("usersName", usersName);
Now if the user name contains dot'.' character its returning empty set other wise its returning the user details.
What I have tried?
Hibernate having difficulty with '@' character in HQL
Executed the sql query in the server its returning the user details.
Concatenated the parameters directly in query string getting same error.
Tried Criteria Query Got the same problem
where might be the problem?