fix hibernate rating entity