Code example for SessionFactory

Methods: getCurrentSession

0
		 
		return result;
	} 
	 
	public int removeAllResourceTypes() { 
		Session session = sessionFactory.getCurrentSession();
		Query qry = session.createQuery("delete from org.openiam.idm.srvc.res.domain.ResourceTypeEntity");
		return qry.executeUpdate();
	} 
	 
	 
	 
}