Hibernate ORM JdbcTransactionFactory - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM JdbcTransactionFactory class.

This code example shows how to use the following methods:
 
	@Override 
	@SuppressWarnings( {"unchecked"}) 
	public TransactionFactory initiateService(Map configurationValues, ServiceRegistryImplementor registry) { 
		final Object strategy = configurationValues.get( Environment.TRANSACTION_STRATEGY ); 
		if ( TransactionFactory.class.isInstance( strategy ) ) { 
			return (TransactionFactory) strategy; 
		} 
 
		if ( strategy == null ) { 
            LOG.usingDefaultTransactionStrategy(); 
			return new JdbcTransactionFactory(); 
		} 
 
		final String strategyClassName = mapLegacyNames( strategy.toString() ); 
        LOG.transactionStrategy(strategyClassName); 
 
		ClassLoaderService classLoaderService = registry.getService( ClassLoaderService.class ); 
		try { 
			return (TransactionFactory) classLoaderService.classForName( strategyClassName ).newInstance(); 
4
CodeRank