Hibernate ORM JBossStandAloneJtaPlatform - 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 JBossStandAloneJtaPlatform class.

This code example shows how to use the following methods:
		} 
		if ( isNeo4j( configurationValues, registry.getService( ClassLoaderService.class ) ) ) {
			configurationValues.put( Environment.JTA_PLATFORM, "org.hibernate.ogm.datastore.neo4j.transaction.impl.Neo4jJtaPlatform" );
			return JtaPlatformInitiator.INSTANCE.initiateService( configurationValues, registry );
		} 
		return new JBossStandAloneJtaPlatform();
	} 
 
	//TODO OGM-370 get rid of this!!! 
	private boolean isNeo4j(Map configuration, ClassLoaderService classLoaderService) {
		DatastoreProvider configuredProvider = new ConfigurationPropertyReader( configuration, classLoaderService )
			.property( OgmProperties.DATASTORE_PROVIDER, DatastoreProvider.class ) 
			.instantiate() 
			.withShortNameResolver( new DatastoreProviderInitiator.DatastoreProviderShortNameResolver() ) 
			.getValue(); 
 
		return configuredProvider != null &&
				configuredProvider.getClass().getName().equals(
						AvailableDatastoreProvider.NEO4J_EMBEDDED.getDatastoreProviderClassName() ); 
	} 
3
CodeRank
Experience pair programming with AI  Get Codota for Java