Package database

Examples of database.Log


    public void delLog(long id) {

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

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

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


    public Log getLog(long id) {

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

        session.beginTransaction();
        Log Log = (Log) session.load(Log.class, id);

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

TOP

Related Classes of database.Log

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.