gen get n set method in entity class