added getter and setter to orm mapping unctions