Code example for Session

Methods: closedeletebeginTransaction

0
		assertInsertCount(2); 
		assertUpdateCount(0); 
		clearCounts(); 
 
		s = openSession();
		tx = s.beginTransaction();
		s.delete(grandchild);
		s.delete(grandchild2);
		s.delete(grandchild3);
		s.delete(child);
		s.delete(child2);
		s.delete(root);
		tx.commit();
		s.close();
 
	} 
 
	@SuppressWarnings( {"UnusedAssignment"}) 
	@Test
	public void testMergeDeepTreeWithGeneratedId() { 
Contextual code suggestions in your IDE  Get Codota for Java