Package org.hibernate.shards

Examples of org.hibernate.shards.ShardedConfiguration


    return buildMultiNodeSessionFactory(shardConfigs);
  }

  private ShardedSessionFactory buildMultiNodeSessionFactory(List<ShardConfiguration> shardConfigs) {
    Configuration prototypeConfig = buildPrototypeConfiguration();
    ShardedConfiguration shardedConfig = new ShardedConfiguration(prototypeConfig, shardConfigs, buildShardStrategyFactory());
    return shardedConfig.buildShardedSessionFactory();
  }
View Full Code Here


        log.info("Adding node: " + item.getNode().getUri());
        return item.toShardConfig();
      }
    },nodeConfigs);
    ShardedSessionFactory shardedFactory =
      new ShardedConfiguration(
        buildPrototypeConfiguration(Atom.getFirstOrThrow(nodeConfigs)),
        Lists.newList(shardConfigs),
        buildShardStrategyFactory()).buildShardedSessionFactory();

    logIterable("Adding class:", persistableClasses);
View Full Code Here

TOP

Related Classes of org.hibernate.shards.ShardedConfiguration

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.