Java 类org.hibernate.hql.spi.id.MultiTableBulkIdStrategy 实例源码

项目:isc-hapi-fhir-jpaserver    文件:CacheDialect.java   
@Override
public MultiTableBulkIdStrategy getDefaultMultiTableBulkIdStrategy() {
    return new LocalTemporaryTableBulkIdStrategy(
        new IdTableSupportStandardImpl() {
            @Override
            public String generateIdTableName(String baseName) {
                final String name = super.generateIdTableName( baseName );
                return name.length() > 25 ? name.substring( 1, 25 ) : name;
            }

            @Override
            public String getCreateIdTableCommand() {
                return "create global temporary table";
            }
        },
        AfterUseAction.DROP,
        null
    );

}
项目:org.fastnate    文件:AllowMissingIdentitySupportDialect.java   
@Override
public MultiTableBulkIdStrategy getDefaultMultiTableBulkIdStrategy() {
    return this.wrapped.getDefaultMultiTableBulkIdStrategy();
}