org.hibernate.cfg.Configuration.setImplicitNamingStrategy()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(134)

本文整理了Java中org.hibernate.cfg.Configuration.setImplicitNamingStrategy()方法的一些代码示例,展示了Configuration.setImplicitNamingStrategy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.setImplicitNamingStrategy()方法的具体详情如下:
包路径:org.hibernate.cfg.Configuration
类名称:Configuration
方法名:setImplicitNamingStrategy

Configuration.setImplicitNamingStrategy介绍

暂无

代码示例

代码示例来源:origin: hibernate/hibernate-orm

@Override
protected void configure(Configuration configuration) {
  super.configure( configuration );
  configuration.setImplicitNamingStrategy( ImplicitNamingStrategyLegacyJpaImpl.INSTANCE );
}

代码示例来源:origin: hibernate/hibernate-orm

@Override
protected void configure(Configuration configuration) {
  super.configure( configuration );
  configuration.setImplicitNamingStrategy( ImplicitNamingStrategyJpaCompliantImpl.INSTANCE );
}

代码示例来源:origin: hibernate/hibernate-orm

@Override
  protected void configure(Configuration cfg) {
    cfg.setProperty( "hibernate.cache.use_query_cache", "true" );
    cfg.setImplicitNamingStrategy( ImplicitNamingStrategyLegacyJpaImpl.INSTANCE );
  }
}

代码示例来源:origin: hibernate/hibernate-orm

@Override
  protected void configure(Configuration configuration) {
    super.configure( configuration );
    configuration.setImplicitNamingStrategy( ImplicitNamingStrategyJpaCompliantImpl.INSTANCE );
  }
}

代码示例来源:origin: hibernate/hibernate-orm

@Override
protected void configure(Configuration configuration) {
  super.configure( configuration );
  configuration.setImplicitNamingStrategy( ImplicitNamingStrategyLegacyJpaImpl.INSTANCE );
}

代码示例来源:origin: hibernate/hibernate-orm

protected Configuration constructConfiguration() {
  Configuration configuration = new Configuration();
  configuration.setProperty( AvailableSettings.CACHE_REGION_FACTORY, CachingRegionFactory.class.getName() );
  configuration.setProperty( AvailableSettings.USE_NEW_ID_GENERATOR_MAPPINGS, "true" );
  if ( createSchema() ) {
    configuration.setProperty( Environment.HBM2DDL_AUTO, "create-drop" );
    final String secondSchemaName = createSecondSchema();
    if ( StringHelper.isNotEmpty( secondSchemaName ) ) {
      if ( !( getDialect() instanceof H2Dialect ) ) {
        throw new UnsupportedOperationException( "Only H2 dialect supports creation of second schema." );
      }
      Helper.createH2Schema( secondSchemaName, configuration );
    }
  }
  configuration.setImplicitNamingStrategy( ImplicitNamingStrategyLegacyJpaImpl.INSTANCE );
  configuration.setProperty( Environment.DIALECT, getDialect().getClass().getName() );
  return configuration;
}

代码示例来源:origin: org.codehaus.griffon.plugins/griffon-hibernate5-core

private void applyPhysicalNamingStrategy(Configuration config) {
  Object namingStrategy = getConfigValue(sessionConfig, PHYSICAL_NAMING_STRATEGY, null);
  if (namingStrategy instanceof Class) {
    config.setImplicitNamingStrategy((ImplicitNamingStrategy) newInstanceOf((Class) namingStrategy));
  } else if (namingStrategy instanceof String) {
    config.setImplicitNamingStrategy((ImplicitNamingStrategy) newInstanceOf((String) namingStrategy));
  }
}

代码示例来源:origin: org.codehaus.griffon.plugins/griffon-hibernate5-core

private void applyImplicitNamingStrategy(Configuration config) {
  Object namingStrategy = getConfigValue(sessionConfig, IMPLICIT_NAMING_STRATEGY, null);
  if (namingStrategy instanceof Class) {
    config.setImplicitNamingStrategy((ImplicitNamingStrategy) newInstanceOf((Class) namingStrategy));
  } else if (namingStrategy instanceof String) {
    config.setImplicitNamingStrategy((ImplicitNamingStrategy) newInstanceOf((String) namingStrategy));
  }
}

代码示例来源:origin: com.weicoder/dao

Logs.info("load hibernate name={},config={}", path + name, config);
config.setImplicitNamingStrategy(ImplicitNamingStrategyJpaCompliantImpl.INSTANCE);
config.setPhysicalNamingStrategy(ImprovedNamingStrategy.INSTANCE);

代码示例来源:origin: com.atlassian.hibernate/hibernate.adapter

setV5HibernateProperties(config.getProperties(), getSettingsV2());
if (useV2PostgresSchemaNamingStrategy()) {
  config.setImplicitNamingStrategy(V2_POSTGRES_NAMING_STRATEGY);

相关文章

Configuration类方法