Package net.caece.pri.hibernate

Examples of net.caece.pri.hibernate.User


        }
    }

    public void add() {
        User obj = (User) viewToObj(null);
        UserDao dao = new UserDao();
        add(dao, obj);
    }
View Full Code Here


        return true;

    }

    public Object viewToObj(Object obj) {
        User var = new User();
        if (obj != null) {
            try {
                BeanUtils.copyProperties(var, obj);
            } catch (Exception iae) {
                iae.printStackTrace();
            }
        }
        var.setOperateBy(operateBy);

        Combobox orgIdCB = (Combobox) getFellow("orgId");
        Textbox userNameTB = (Textbox) getFellow("userName");
        Textbox accountTB = (Textbox) getFellow("account");
        Textbox passwdTB = (Textbox) getFellow("passwd");

        var.setOrg((Org) orgIdCB.getSelectedItem().getValue());
        var.setUserName(userNameTB.getText());
        var.setAccount(accountTB.getText());
        var.setPasswd(passwdTB.getText());


        return var;
    }
View Full Code Here

        userList = null;
    }

    public Object viewToObj(Object obj) {
        User user = new User();
        if (obj != null) {
            try {
                BeanUtils.copyProperties(user, obj);
            } catch (Exception iae) {
                iae.printStackTrace();
            }
        }

        user.setOperateBy(operateBy);

        Combobox orgIdCB = (Combobox) getFellow("OrgId");
        Textbox userNameTB = (Textbox) getFellow("UserDutyWinUserName");
        Textbox accountTB = (Textbox) getFellow("Account");
        Textbox passwdTB = (Textbox) getFellow("Passwd");

        user.setOrg((Org) orgIdCB.getSelectedItem().getValue());
        user.setUserName(userNameTB.getValue());
        user.setAccount(accountTB.getValue());
        user.setPasswd(passwdTB.getValue());

        return user;
    }
View Full Code Here

        }
    }

    public void add() {
        User obj = (User) viewToObj(null);
        UserDao dao = new UserDao();
        add(dao, obj);
    }
View Full Code Here

        return true;

    }

    public Object viewToObj(Object obj) {
        User var = new User();
        if (obj != null) {
            try {
                BeanUtils.copyProperties(var, obj);
            } catch (Exception iae) {
                iae.printStackTrace();
            }
        }
        Combobox orgIdCB = (Combobox) getFellow("orgId");
        Textbox userNameTB = (Textbox) getFellow("userName");
        Textbox accountTB = (Textbox) getFellow("account");
        Textbox passwdTB = (Textbox) getFellow("passwd");

        var.setOrg((Org) orgIdCB.getSelectedItem().getValue());
        var.setUserName(userNameTB.getText());
        var.setAccount(accountTB.getText());
        var.setPasswd(passwdTB.getText());


        return var;
    }
View Full Code Here

TOP

Related Classes of net.caece.pri.hibernate.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.