daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Jan 20th, 2017 131 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Session session = sessionFactory.openSession();
  2.     Query q = session.createQuery("from Users u where u.username = :name and u.password = :pass");
  3.     q.setParameter("name", username);
  4.     q.setParameter("pass", password);
  5.     Users user = (Users) q.uniqueResult();
  6.    
  7. 2017-01-20 22:34:17 TRACE BasicBinder:83 - binding parameter [1] as [VARCHAR] - "test"
  8. 2017-01-20 22:34:17 TRACE BasicBinder:83 - binding parameter [2] as [VARCHAR] - "test"
  9.  
  10. user =  null
  11.    
  12. from Users u where u.username = 'test' and u.password = 'test'"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top