package Ġcom . r js . my shows . services . controller Ċ Ċ import Ġcom . r js . my shows . common . domain . security . User Dto Ċ import Ġcom . r js . my shows . services . domain . User Entity Ċ import Ġcom . r js . my shows . services . service . UserService Ċ import Ġorg . model mapper . Model Mapper Ċ Ċ abstract Ġclass ĠUser Controller ( ĊĠĠĠ Ġprotected Ġval ĠuserService : ĠUserService , ĊĠĠĠ Ġprotected Ġval Ġmodel Mapper : ĠModelMapper Ċ ) Ġ{ ĊĠĠĠ Ġprotected Ġfun ĠconvertTo User ( user Dto : ĠUser Dto , Ġuser : ĠUser Entity ) Ġ= Ġmodel Mapper . map ( user Dto , Ġuser ) ĊĠĠĠ Ġprotected Ġfun ĠconvertTo User Dto ( user : ĠUser Entity ): ĠUser Dto Ġ= Ġmodel Mapper . map ( user , ĠUser Dto :: class . java ) Ċ } Ċ