package Ġua . better dating . backend . data Ċ Ċ import Ġorg . springframework . data . annotation . Id Ċ import Ġorg . springframework . data . r 2 dbc . core .* Ċ import Ġorg . springframework . data . relational . core . query . Criteria Ċ import Ġorg . springframework . data . relational . core . query . Query Ċ import Ġjava . time . Instant Ċ import Ġjava . util .* Ċ Ċ enum Ġclass ĠImpro vement Category Ġ{ ĊĠĠĠ ĠLooks Good To Me , ĠSomething Could Be Impro ved But Not S ure What , ĠSome Things Can Be Impro ved Ċ } Ċ class ĠProfile Impro vement ( ĊĠĠĠ Ġ@ Id Ġval Ġdate Id : ĠUUID , ĊĠĠĠ Ġval Ġsource Profile Id : ĠUUID , ĊĠĠĠ Ġval Ġtarget Profile Id : ĠUUID , ĊĠĠĠ Ġval Ġcategory : ĠImpro vement Category , ĊĠĠĠ Ġval Ġcomment : ĠString ?, ĊĠĠĠ Ġval ĠcreatedAt : ĠInstant , Ċ ) Ċ class ĠProfile Impro vement Repository ( private Ġval Ġtemplate : ĠR 2 dbc Entity Template ) Ġ{ ĊĠĠĠ Ġsuspend Ġfun Ġsave ( profile Impro vement : ĠProfile Impro vement ): ĠProfile Impro vement Ġ= Ġtemplate . insert < Profile Impro vement >(). using And Await ( profile Impro vement ) ĊĊĠĠĠ Ġsuspend Ġfun Ġdelete ( profile Id : ĠUUID ) Ġ= Ġtemplate . delete < Profile Impro vement >() ĊĠĠĠĠĠĠĠ Ġ. matching ( Query . query ( Criteria . where (" source _ profile _ id "). ` is `( profile Id ))) ĊĠĠĠĠĠĠĠ Ġ. all And Await () Ċ }