package Ġr ch abot . controller . tournament . mapper . impl Ċ Ċ import Ġorg . bson . types . ObjectId Ċ import Ġr ch abot . controller . player . mapper . Player Resource Mapper Ċ import Ġr ch abot . controller . tournament . mapper . Tournament Resource Mapper Ċ import Ġr ch abot . controller . tournament . resource . Tournament Resource Ċ import Ġr ch abot . services . tournament . bo . Tournament BO Ċ Ċ class ĠTo urnament Resource Mapper Impl ( private Ġval Ġplayer Mapper : ĠPlayer Resource Mapper ) Ġ: ĠTo urnament Resource Mapper Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġto Resource ( bo : ĠTo urnament BO ): ĠTo urnament Resource Ġ{ ĊĊĠĠĠĠĠĠĠ Ġreturn ĠTo urnament Resource ( bo ._ id . toString (), Ġbo . name , Ġbo . players . size ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġto BO ( resource : ĠTo urnament Resource ): ĠTo urnament BO Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠTo urnament BO ( ObjectId ( resource ._ id ), Ġresource . name ) ĊĠĠĠ Ġ} Ċ } Ċ