Code examples for AnnotationConfiguration

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.
57:	AnnotationConfiguration cfg = new AnnotationConfiguration(); 
58:	cfg.configure().setProperty("hibernate.connection.url", "jdbc:hsqldb:mem:mydvdsDB"); 
59:	session = cfg.buildSessionFactory().openSession(); 
Full Snippet Info
7
CodeRank
32:	AnnotationConfiguration cfg = new AnnotationConfiguration(); 
33:	cfg.addFilterDefinition(new FilterDefinition("securityFilter", 
-
35:	cfg.configure(testCfg); 
36:	cfg.setProperties(props); 
37:	sessionFactory = cfg.buildSessionFactory(); 
Full Snippet Info
7
CodeRank
88:	AnnotationConfiguration cfg = new AnnotationConfiguration(); 
89:	cfg.configure().setProperty("hibernate.connection.url", "jdbc:hsqldb:mem:mydvdsDB"); 
90:	session = cfg.buildSessionFactory().openSession(); 
Full Snippet Info
7
CodeRank
174:	AnnotationConfiguration cfg = new AnnotationConfiguration(); 
-
176:	cfg.addAnnotatedClass( classUnderTest ); 
177:	cfg.addAnnotatedClass( Person.class ); 
178:	cfg.addAnnotatedClass( Being.class ); 
179:	SessionFactoryImplementor factory = ( SessionFactoryImplementor ) cfg.buildSessionFactory( serviceRegistry ); 
Full Snippet Info
7
CodeRank
221:	AnnotationConfiguration configuration = new AnnotationConfiguration(); 
-
223:	configuration.addAnnotatedClass( puppet ); 
-
225:	configuration.setProperty( "hibernate.hbm2ddl.auto", "create-drop" ); 
226:	SessionFactory sf = configuration.buildSessionFactory(); 
Full Snippet Info
6
CodeRank
43:	AnnotationConfiguration config = new AnnotationConfiguration(); 
44:	config.setNamingStrategy(new DummyNamingStrategy()); 
45:	config.addAnnotatedClass(Address.class); 
46:	config.addAnnotatedClass(Person.class); 
47:	config.buildSessionFactory( serviceRegistry ); 
Full Snippet Info
6
CodeRank
40:	SessionFactory original = new AnnotationConfiguration().configure().buildSessionFactory(); 
Full Snippet Info
6
CodeRank
145:	AnnotationConfiguration configuration = new AnnotationConfiguration(); 
146:	configuration.addAnnotatedClass( getUcl().loadClass( "Project" ) ); 
147:	configuration.addAnnotatedClass( getUcl().loadClass( "Employee" ) ); 
148:	configuration.addAnnotatedClass( getUcl().loadClass( "WorksOnContext" ) ); 
-
150:	SessionFactory sf = configuration.buildSessionFactory(); 
Full Snippet Info
6
CodeRank
45:	final AnnotationConfiguration cfg = new AnnotationConfiguration(); // 这里读com.login.system.bean.Users 
-
47:	cfg.configure();//("/hibernate.cfg.xml"); // 路径可以改变 
48:	sessionFactory = cfg.buildSessionFactory(); 
Full Snippet Info
6
CodeRank
123:	new AnnotationConfiguration().configure(resource).buildSessionFactory(); 
Full Snippet Info
6
CodeRank
42:	AnnotationConfiguration configuration = new AnnotationConfiguration() 
Full Snippet Info
6
CodeRank
13:	AnnotationConfiguration config = new AnnotationConfiguration(); 
14:	config.addResource( "org/hibernate/test/annotations/configuration/orm.xml" ); 
15:	config.addPackage( "org.hibernate.test.annotations.configuration" ); 
Full Snippet Info
6
CodeRank
50:	AnnotationConfiguration configuration = new AnnotationConfiguration() 
Full Snippet Info
6
CodeRank
23:	configuration = new AnnotationConfiguration(); 
Full Snippet Info
6
CodeRank