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:
	@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 ) { 
			return new JdbcTransactionFactory(); 
		final String strategyClassName = mapLegacyNames( strategy.toString() ); 
		ClassLoaderService classLoaderService = registry.getService( ClassLoaderService.class ); 
		try { 
			return (TransactionFactory) classLoaderService.classForName( strategyClassName ).newInstance(); 
Full Snippet Info
Contextual code suggestions in your IDE  Get Codota for Java