Examples of addScanPackages()


Examples of org.jrest4guice.persistence.hibernate.HibernateGuiceModuleProvider.addScanPackages()

    Assert.isFalse(this.useJPA, "已经打开了JPA支持,不能再使用Hibernate");
    this.useHibernate = true;
   
    HibernateGuiceModuleProvider hibernateGuiceModuleProvider = new HibernateGuiceModuleProvider();
    if(packages != null)
      hibernateGuiceModuleProvider.addScanPackages(packages);
   
    this.addModuleProvider(hibernateGuiceModuleProvider,new TransactionGuiceModuleProvider(new HibernateLocalTransactionInterceptor()));
    return this;
  }
View Full Code Here

Examples of org.jrest4guice.persistence.jpa.JpaGuiceModuleProvider.addScanPackages()

    Assert.isFalse(this.useHibernate, "已经打开了Hibernate支持,不能再使用JPA");
    this.useJPA = true;
   
    JpaGuiceModuleProvider jpaGuiceModuleProvider = new JpaGuiceModuleProvider();
    if(packages != null)
      jpaGuiceModuleProvider.addScanPackages(packages);
   
    this.addModuleProvider(jpaGuiceModuleProvider,new TransactionGuiceModuleProvider(new JpaLocalTransactionInterceptor()));
    return this;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.