Package org.jrest4guice.transaction

Examples of org.jrest4guice.transaction.TransactionGuiceModuleProvider


   
    JpaGuiceModuleProvider jpaGuiceModuleProvider = new JpaGuiceModuleProvider();
    if(packages != null)
      jpaGuiceModuleProvider.addScanPackages(packages);
   
    this.addModuleProvider(jpaGuiceModuleProvider,new TransactionGuiceModuleProvider(new JpaLocalTransactionInterceptor()));
    return this;
  }
View Full Code Here


   
    HibernateGuiceModuleProvider hibernateGuiceModuleProvider = new HibernateGuiceModuleProvider();
    if(packages != null)
      hibernateGuiceModuleProvider.addScanPackages(packages);
   
    this.addModuleProvider(hibernateGuiceModuleProvider,new TransactionGuiceModuleProvider(new HibernateLocalTransactionInterceptor()));
    return this;
  }
View Full Code Here

   * 打开IBatis支持
   * @return
   */
  public PersistenceGuiceContext useIbatis(String... packages){
    this.useIbatis = true;
    this.addModuleProvider(new IbatisGuiceModuleProvider(packages),new TransactionGuiceModuleProvider(new IbatisLocalTransactionInterceptor()));
    return this;
  }
View Full Code Here

TOP

Related Classes of org.jrest4guice.transaction.TransactionGuiceModuleProvider

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.