• Post Reply Bookmark Topic Watch Topic
  • New Topic

Give Me the Explanantion of below code  RSS feed

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;
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!