Package database

Examples of database.Filter


    public void delFilter(long id) {

        Session session = HibernateUtil.getSessionFactory().getCurrentSession();

        session.beginTransaction();
        Filter filter = (Filter) session.load(Filter.class, id);
        session.delete(filter);

        session.getTransaction().commit();
    }
View Full Code Here


    public Filter getFilter(long id) {

        Session session = HibernateUtil.getSessionFactory().getCurrentSession();

        session.beginTransaction();
        Filter filter = (Filter) session.load(Filter.class, id);

        session.getTransaction().commit();
        return filter;
    }
View Full Code Here

TOP

Related Classes of database.Filter

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.