• Post Reply Bookmark Topic Watch Topic
  • New Topic

Give Me the Explanantion of below code

kumar nandha
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
public Integer verifyUser(String username, String password)
Session session=HibernateSessionFactory.getSession();
Criteria criteria=session.createCriteria(Employees.class);
criteria.add(Expression.eq("username", username));
criteria.add(Expression.eq("password", password));
List list=criteria.list();
Employees employees=new Employees();
for(Iterator i=list.iterator();i.hasNext();)
return employees.getType();
return -1;
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!