AST error in hibernate fix