Package com.rx.entity

Examples of com.rx.entity.User


 
  @SuppressWarnings("unchecked")
  public int verify(String username,String password){
    List<User> users = hibernateTemplate.find("from User where username = '"+username+"'");
    if(users.size()>0){
      User user = users.get(0);
      if(user.getPassword().equals(password)){
        return 1;
      }else{
        return 0;
      }
    }else{
View Full Code Here

TOP

Related Classes of com.rx.entity.User

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.