clear the deprecated functions in HibernateUtil

Signed-off-by: Peter <mcheung63@hotmail.com>