Fix methods defined on generated mapper classes