class CommonDAO implements ICommonDAO {

	@Override
	public void execSQLScript(String sql) {
		EntityManager em = emf.createEntityManager();	
		try{
			em.createNativeQuery(sql);
		}
		catch (PersistenceException e) {
			logger.error("Class CommonDAO is method findByNativeSQL(String sql) error!",e);
		}
		finally{
			em.close();
		}
	}

}