Code examples for SessionFactory

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.
45:	this.sessionFactory.getCurrentSession().save(person); 
Full Snippet Info
10
CodeRank
45:	sessionFactory.getCurrentSession().saveOrUpdate(t); 
Full Snippet Info
10
CodeRank
56:	return factory.getCurrentSession(); 
Full Snippet Info
9
CodeRank
91:	Session currentSession = sessionFactory.getCurrentSession(); 
Full Snippet Info
9
CodeRank
31:	return (T) sessionFactory.getCurrentSession().get(mappedClass, id); 
Full Snippet Info
9
CodeRank
48:	return sessionFactory.getCurrentSession(); 
Full Snippet Info
9
CodeRank
54:	return sessionFactory.getCurrentSession().createQuery("from Note").list(); 
Full Snippet Info
9
CodeRank
46:	sessionFactory.getCurrentSession().persist(person); 
Full Snippet Info
9
CodeRank
46:	sessionFactory.getCurrentSession().persist(person); 
Full Snippet Info
9
CodeRank
66:	Criteria criteria = sessionFactory.getCurrentSession().createCriteria(clazz); 
Full Snippet Info
9
CodeRank
56:	return original.getCurrentSession(); 
Full Snippet Info
9
CodeRank
43:	this.session = sessionFactory.getCurrentSession(); 
Full Snippet Info
9
CodeRank
43:	this.session = sessionFactory.getCurrentSession(); 
Full Snippet Info
9
CodeRank
56:	return (Cohort) sessionFactory.getCurrentSession().get(Cohort.class, id); 
Full Snippet Info
9
CodeRank
35:	Object result = sessionFactory.getCurrentSession() 
Full Snippet Info
9
CodeRank
138:	Topic topic = (Topic)this.sessionFactory.getCurrentSession().get(Topic.class, topicIds[0]); 
Full Snippet Info
9
CodeRank
64:	return factory.getCurrentSession(); 
Full Snippet Info
9
CodeRank
36:	return (HtmlForm) sessionFactory.getCurrentSession().get(HtmlForm.class, id); 
Full Snippet Info
8
CodeRank
104:	return _sessionFactory.getCurrentSession(); 
Full Snippet Info
8
CodeRank
221:	return delegate.getCurrentSession(); 
Full Snippet Info
8
CodeRank