Package com.codahale.shore.modules

Examples of com.codahale.shore.modules.HibernateModule


      properties.setProperty(Environment.SHOW_SQL, "true");
      properties.setProperty(Environment.HBM2DDL_AUTO, "create-drop");
    }
   
    protected HibernateModule createModule() throws Exception {
      return new HibernateModule(
        logger,
        properties,
        ImmutableList.of("com.codahale.shore.modules.test.fixtures")
      );
    }
View Full Code Here


   
    try {
      final Logger silentLogger = Logger.getLogger(SchemaCommand.class.getCanonicalName());
      silentLogger.setLevel(Level.OFF);
     
      final HibernateModule module = new HibernateModule(silentLogger, properties, configuration.getEntityPackages());
      final AnnotationConfiguration hibernateConfig = module.getConfiguration();
      final Settings settings = hibernateConfig.buildSettings();
     
     
     
      if (migration) {
View Full Code Here

      )
    );
  }

  private Module buildHibernateModule() {
    return new HibernateModule(LOGGER, properties, configuration.getEntityPackages());
  }
View Full Code Here

TOP

Related Classes of com.codahale.shore.modules.HibernateModule

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.