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

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

Hibernate ORM SessionFactory examples from Open Source projects
This code example shows how to use the following methods: getCurrentSession
45:	this.sessionFactory.getCurrentSession().save(person); 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods: getCurrentSession
45:	sessionFactory.getCurrentSession().saveOrUpdate(t); 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods: getCurrentSession
56:	return factory.getCurrentSession(); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: openSession
516:	Assert.notNull(sessionFactory, "No SessionFactory specified"); 
-
519:	SessionHolder sessionHolder = (SessionHolder) TransactionSynchronizationManager.getResource(sessionFactory); 
-
533:	return sessionFactory.openSession(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
123:	writer.setSessionFactory(factory); 
124:	when(factory.getCurrentSession()).thenReturn(currentSession); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: openSession
168:	Session s = sf.openSession(); 
-
177:	s = sf.openSession(); 
-
186:	s = sf.openSession(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: openSession
85:	hibernateQueryProvider.setSession(sessionFactory.openSession()); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
91:	Session currentSession = sessionFactory.getCurrentSession(); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: openSession
25:	TransactionSynchronizationManager.unbindResource(sessionFactory); 
-
35:	Session session = sessionFactory.openSession(); 
-
37:	TransactionSynchronizationManager.bindResource(sessionFactory, new SessionHolder(session)); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: openSession
69:	listSession = factory.openSession(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getCurrentSession
31:	return (T) sessionFactory.getCurrentSession().get(mappedClass, id); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: getCurrentSession
48:	return sessionFactory.getCurrentSession(); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: getCurrentSession
54:	return sessionFactory.getCurrentSession().createQuery("from Note").list(); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: getCurrentSession
46:	sessionFactory.getCurrentSession().persist(person); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: getCurrentSession
46:	sessionFactory.getCurrentSession().persist(person); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: getCurrentSession
66:	Criteria criteria = sessionFactory.getCurrentSession().createCriteria(clazz); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: getCurrentSession
56:	return original.getCurrentSession(); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: getCurrentSession
43:	this.session = sessionFactory.getCurrentSession(); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: getCurrentSession
43:	this.session = sessionFactory.getCurrentSession(); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: getCurrentSession
56:	return (Cohort) sessionFactory.getCurrentSession().get(Cohort.class, id); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: getCurrentSession
35:	Object result = sessionFactory.getCurrentSession() 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: getCurrentSession
138:	Topic topic = (Topic)this.sessionFactory.getCurrentSession().get(Topic.class, topicIds[0]); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: getCurrentSession
36:	return (HtmlForm) sessionFactory.getCurrentSession().get(HtmlForm.class, id); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
104:	return _sessionFactory.getCurrentSession(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
221:	return delegate.getCurrentSession(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
197:	return sessionFactory.getCurrentSession(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
234:	sessionFactory.getCurrentSession().update(user); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
62:	return sessionFactory.getCurrentSession(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
91:	sessionFactory.getCurrentSession().saveOrUpdate(order); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
44:	sessionFactory.getCurrentSession().clear(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
75:	return ((SessionImplementor) sessionFactory.getCurrentSession()).isTransactionInProgress(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
101:	Session session = sessionFactory.getCurrentSession(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
43:	return (Entity)this.sessionFactory.getCurrentSession().get(getPersistentClass(), id); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
87:	sessionFactory.getCurrentSession().flush(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
108:	Session session = sessionFactory.getCurrentSession(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
107:	Session session = sessionFactory.getCurrentSession(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
107:	Session session = sessionFactory.getCurrentSession(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
27:	this.sessionFactory.getCurrentSession().save(user); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
117:	Session session = sessionFactory.getCurrentSession(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
128:	Session session = sessionFactory.getCurrentSession(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
122:	Session session = sessionFactory.getCurrentSession(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
138:	Session session = sessionFactory.getCurrentSession(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
141:	Session session = sessionFactory.getCurrentSession(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
107:	Session session = sessionFactory.getCurrentSession(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
112:	Session session = sessionFactory.getCurrentSession(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
175:	Session session = sessionFactory.getCurrentSession(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
116:	Session session = sessionFactory.getCurrentSession(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getCurrentSession
145:	Session session = sessionFactory.getCurrentSession(); 
Full Snippet Info
8
CodeRank
See Code Examples for Hibernate ORM SessionFactory Methods: