Code examples for Session

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.session.flush(); 
Full Snippet Info
10
CodeRank
121:	session.close(); 
Full Snippet Info
9
CodeRank
47:	session.persist(member); 
Full Snippet Info
8
CodeRank
83:	session.delete(entity); 
Full Snippet Info
8
CodeRank
392:	session.flush(); 
Full Snippet Info
9
CodeRank
66:	tx = session.beginTransaction(); 
Full Snippet Info
8
CodeRank
124:	when(factory.getCurrentSession()).thenReturn(currentSession); 
125:	when(currentSession.contains("foo")).thenReturn(true); 
126:	when(currentSession.contains("bar")).thenReturn(false); 
127:	currentSession.saveOrUpdate("bar"); 
128:	currentSession.flush(); 
129:	currentSession.clear(); 
Full Snippet Info
8
CodeRank
820:	session.close(); 
Full Snippet Info
8
CodeRank
77:	tx = session.beginTransaction(); 
Full Snippet Info
8
CodeRank
140:	session.flush(); 
141:	session.clear(); 
Full Snippet Info
8
CodeRank
81:	tx = session.beginTransaction(); 
Full Snippet Info
8
CodeRank
92:	currentSession.flush(); 
Full Snippet Info
8
CodeRank
82:	tx = session.beginTransaction(); 
Full Snippet Info
8
CodeRank
80:	Transaction transaction = session.beginTransaction(); 
Full Snippet Info
8
CodeRank
115:	session.setDefaultReadOnly(unitOfWork.readOnly()); 
116:	session.setCacheMode(unitOfWork.cacheMode()); 
117:	session.setFlushMode(unitOfWork.flushMode()); 
Full Snippet Info
6
CodeRank
51:	return currentSession().createCriteria(entityClass); 
Full Snippet Info
4
CodeRank