Code examples for Configuration

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
62:	return new Configuration(); 
Full Snippet Info
8
CodeRank
41:	Configuration cfg = new Configuration(); 
-
78:	cfg.configure(file); 
-
86:	cfg.setProperty("hibernate.connection.url", "jdbc:mysql://" + dbHost + ":" + dbPort + "/" + dbName); 
87:	cfg.setProperty("hibernate.connection.username", dbUser); 
88:	cfg.setProperty("hibernate.connection.password", dbPassword); 
-
91:	factory = cfg.buildSessionFactory(); 
Full Snippet Info
8
CodeRank
238:	Configuration config = new Configuration().configure(); 
Full Snippet Info
8
CodeRank
42:	Configuration cfg = new Configuration(); 
-
79:	cfg.configure(file); 
-
87:	cfg.setProperty("hibernate.connection.url", "jdbc:mysql://" + dbHost + ":" + dbPort + "/" + dbName); 
88:	cfg.setProperty("hibernate.connection.username", dbUser); 
89:	cfg.setProperty("hibernate.connection.password", dbPassword); 
-
92:	factory = cfg.buildSessionFactory(); 
Full Snippet Info
8
CodeRank
63:	Configuration configuration = new Configuration(); 
-
65:	configuration = configuration.configure(); 
-
67:	_sessionFactory = configuration.buildSessionFactory(); 
Full Snippet Info
7
CodeRank
46:	Configuration config = new Configuration(); 
47:	config.addAnnotatedClass( Product.class ); 
-
49:	config.setProperty( "hibernate.search.lucene_version", TestConstants.getTargetLuceneVersion().toString() ); 
50:	config.setProperty( "hibernate.search.default.directory_provider", "ram" ); 
51:	config.setProperty( "hibernate.search.default.indexBase", TestConstants.getIndexDirectory( TokenizationTest.class ) ); 
-
53:	config.buildSessionFactory(); 
Full Snippet Info
7
CodeRank
35:	super.configure( cfg ); 
36:	cfg.setProperty( "hibernate.search.worker.scope", "transaction" ); 
37:	cfg.setProperty( "hibernate.search.default.worker.execution", "async" ); 
38:	cfg.setProperty( "hibernate.search.default.worker.thread_pool.size", "1" ); 
39:	cfg.setProperty( "hibernate.search.default.worker.buffer_queue.max", "10" ); 
Full Snippet Info
7
CodeRank
30:	Configuration cfg = new Configuration(); 
31:	cfg.addAnnotatedClass( Author.class ); 
32:	cfg.addAnnotatedClass( Book.class ); 
33:	cfg.addProperties( getHibernateProperties() ); 
34:	return cfg.buildSessionFactory(); 
Full Snippet Info
7
CodeRank
21:	super(); 
Full Snippet Info
8
CodeRank
44:	Configuration config = new Configuration(); 
45:	config.addAnnotatedClass( Entity1.class ); 
46:	config.addAnnotatedClass( Entity2.class ); 
47:	config.setProperty( "hibernate.search.default.directory_provider", "ram" ); 
-
49:	config.buildSessionFactory(); 
Full Snippet Info
7
CodeRank
125:	return new Configuration() 
Full Snippet Info
8
CodeRank
49:	public JPosHibernateConfiguration() 
Full Snippet Info
8
CodeRank
10:	Configuration config = new Configuration(). 
Full Snippet Info
8
CodeRank
42:	final Configuration cfg = new Configuration() 
Full Snippet Info
8
CodeRank
46:	sessionFactory = new Configuration() 
Full Snippet Info
8
CodeRank
47:	sessionFactory = new Configuration() 
Full Snippet Info
8
CodeRank
77:	new Configuration().addCacheableFile( mappingFile ); 
Full Snippet Info
8
CodeRank
48:	sessionFactory = (new Configuration()).configure().buildSessionFactory(); 
Full Snippet Info
7
CodeRank
29:	private static final Configuration cfg = new Configuration(); 
Full Snippet Info
7
CodeRank
58:	cfg = new Configuration() 
Full Snippet Info
7
CodeRank