Best code examples for Hibernate ORM ServiceRegistryBuilder class (org.hibernate.service.ServiceRegistryBuilder)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM ServiceRegistryBuilder class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM ServiceRegistryBuilder examples from Open Source projects
This code example shows how to use the following methods:
	} 
 
	private static StandardServiceRegistryImpl createServiceRegistry(Properties properties) { 
		Environment.verifyProperties( properties ); 
		ConfigurationHelper.resolvePlaceHolders( properties ); 
		return (StandardServiceRegistryImpl) new ServiceRegistryBuilder().applySettings( properties ).buildServiceRegistry(); 
	} 
 
	public static void main(String[] args) { 
		try { 
			Configuration cfg = new Configuration(); 
 
			boolean script = true; 
			// If true then execute db updates, otherwise just generate and display updates 
			boolean doUpdate = true; 
			String propFile = null; 
 
			for ( int i = 0; i < args.length; i++ ) { 
				if ( args[i].startsWith( "--" ) ) { 
					if ( args[i].equals( "--quiet" ) ) { 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
	private StandardServiceRegistryImpl serviceRegistry; 
	private ClassLoaderService classLoaderService; 
 
	@Before 
	public void setUp() { 
		serviceRegistry = (StandardServiceRegistryImpl) new ServiceRegistryBuilder().buildServiceRegistry(); 
		classLoaderService = serviceRegistry.getService( ClassLoaderService.class ); 
	} 
 
	@After 
	public void tearDown() { 
		serviceRegistry.destroy(); 
	} 
 
	@Test 
	public void testGetMemberAnnotations() { 
		class Foo { 
			@Column 
			@Basic 
			private String bar; 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
public class BatchingTest extends BaseUnitTestCase implements BatchKey {
	private StandardServiceRegistryImpl serviceRegistry;
 
	@Before 
	public void setUp() throws Exception {
		serviceRegistry = (StandardServiceRegistryImpl) new ServiceRegistryBuilder()
				.applySettings( ConnectionProviderBuilder.getConnectionProviderProperties() )
				.buildServiceRegistry(); 
	} 
 
	@After 
	public void tearDown() throws Exception {
		serviceRegistry.destroy();
	} 
 
	@Override 
	public int getBatchedStatementCount() { 
		return 1; 
	} 
 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
 
	private StandardServiceRegistryImpl serviceRegistry;
 
	@Before 
	public void setUp() { 
		serviceRegistry = (StandardServiceRegistryImpl) new ServiceRegistryBuilder().buildServiceRegistry();
	} 
 
	@After 
	public void tearDown() { 
		serviceRegistry.destroy();
	} 
 
	protected ServiceRegistry basicServiceRegistry() {
		return serviceRegistry;
	} 
 
	@Test
	public void testSimpleEntityMapping() { 
		MetadataSources sources = new MetadataSources( serviceRegistry );
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
	} 
 
	private static StandardServiceRegistryImpl createServiceRegistry(Properties properties) { 
		Environment.verifyProperties( properties ); 
		ConfigurationHelper.resolvePlaceHolders( properties ); 
		return (StandardServiceRegistryImpl) new ServiceRegistryBuilder().applySettings( properties ).buildServiceRegistry(); 
	} 
 
	public static void main(String[] args) { 
		try { 
			Configuration cfg = new Configuration(); 
 
			String propFile = null; 
 
			for ( int i = 0; i < args.length; i++ ) { 
				if ( args[i].startsWith( "--" ) ) { 
					if ( args[i].startsWith( "--properties=" ) ) { 
						propFile = args[i].substring( 13 ); 
					} 
					else if ( args[i].startsWith( "--config=" ) ) { 
Full Snippet Info
5
CodeRank