Package com.vst.dao.hibernate

Examples of com.vst.dao.hibernate.DetailDaoHibernate


         (RegionDao) context.getBean("regionDao");

       final ConstructionExampleDao csamplesDao =
         (ConstructionExampleDao) context.getBean("constructionExampleDao");

       final DetailDaoHibernate detailDao =
         (DetailDaoHibernate) context.getBean("detailDao");

       PlatformTransactionManager txManager =
         (PlatformTransactionManager) context.getBean("txManager");

       new TransactionTemplate(txManager).execute(new TransactionCallback() {

    @Override
    public Object doInTransaction(TransactionStatus arg0) {
        long start = System.currentTimeMillis();

        detailDao.getAllPipe();

        long end = System.currentTimeMillis();
        System.out.println("Work time:" + (end - start));
        return null;
    }
View Full Code Here

TOP

Related Classes of com.vst.dao.hibernate.DetailDaoHibernate

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.