Package net.caece.fmII.hibernate

Examples of net.caece.fmII.hibernate.MechanicDao


    }

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


        add(dao, obj);
    }

    public void delete() {
        MechanicForm obj = (MechanicForm) objListbox.getSelectedItem().getValue();
        MechanicDao dao = new MechanicDao();
        delete(dao, obj);

        // empty all fields
        MechanicForm emptyObj = new MechanicForm();
        objToView(emptyObj);
View Full Code Here

        refreshObjEntities("Mechanic.getAll", objListRenderer);
    }

    public void update() {
        MechanicForm obj = (MechanicForm) objListbox.getSelectedItem().getValue();
        MechanicDao dao = new MechanicDao();
        update(dao, obj);
    }
View Full Code Here

TOP

Related Classes of net.caece.fmII.hibernate.MechanicDao

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.