Package dao

Source Code of dao.DaoUser

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/

package dao;

import java.util.ArrayList;
import java.util.List;
import model.User;

/**
*
* @author GuillermoLuis
*/
public class DaoUser {
   
   
   
    public List<User> FindAllUser(){
        List<User> users = new ArrayList<User>();
        User u = new User();
        u.setUser("admin");
        u.setPass("admin");
        u.setVivienda("Departamento");
        u.setNombre("Guillermo Barraza");
        u.setTitulo("Sr.");
        users.add(u);
       
        User o = new User();
       
        o.setUser("diego");
        o.setPass("urrutia");
        o.setVivienda("Casa");
        o.setNombre("Diego Urrutia");
        o.setTitulo("Sr.");
        users.add(o);
        return users;
    }
}
TOP

Related Classes of dao.DaoUser

TOP
Copyright © 2018 www.massapi.com. 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.