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 ) 
			.withShortNameResolver( new DatastoreProviderInitiator.DatastoreProviderShortNameResolver() ) 
		return configuredProvider != null &&
						AvailableDatastoreProvider.NEO4J_EMBEDDED.getDatastoreProviderClassName() ); 
Full Snippet Info
Stop searching for code, let great code find you!  Add Codota to your java IDE