package Ġcom . github . nothing else mat ters . design . rx . service Ċ Ċ import Ġcom . github . nothing else mat ters . design . rx . Product Ċ import Ġcom . github . nothing else mat ters . design . rx . Product Crud Repository Ċ import Ġorg . springframework . stereotype . Component Ċ import Ġreactor . core . publisher . Mono Ċ Ċ @ Component Ċ class ĠProduct Service ( private Ġval Ġproduct Repository : ĠProduct Crud Repository ) Ġ{ ĊĊĠĠĠ Ġfun Ġadd ( product : ĠProduct ): ĠMono < Product > Ġ= Ġproduct Repository . insert ( product ) ĊĊĠĠĠ Ġoperator Ġfun Ġget ( id : ĠLong ): ĠMono < Product ?> Ġ= Ġproduct Repository . findById ( id ) ĊĊĠĠĠ Ġfun Ġdelete ( id : ĠLong ) Ġ{ ĊĠĠĠĠĠĠĠ Ġproduct Repository . delete ById ( id ) ĊĠĠĠ Ġ} Ċ } Ċ