Code example for Session

Methods: persistgetTransaction

0
		ContainerEntity pe = new ContainerEntity();
		pe.setEmbeddedEntity( ee );
		pe.setParentStringValue( "theparentvalue" );
 
		s = openSession();
		s.getTransaction().begin();
		s.persist( pe );
		s.getTransaction().commit();
	} 
 
	@Override 
	@After 
	public void tearDown() throws Exception {
		s.clear();
		deleteAll( s, ContainerEntity.class );
		s.close();
		super.tearDown(); 
	} 
 
	@Test