package Ġio . github . recipe store . converter . writer Ċ Ċ import Ġio . github . recipe store . domain . User Ċ import Ġorg . springframework . core . convert . converter . Converter Ċ import Ġorg . springframework . data . convert . Writing Converter Ċ import Ġorg . springframework . data . r 2 dbc . mapping . Outbound Row Ċ import Ġorg . springframework . data . r 2 dbc . mapping . Set table Value . from Ċ import Ġorg . springframework . data . relational . core . sql . Sql Identifier . quoted Ċ import Ġorg . springframework . stereotype . Service Ċ Ċ @ Service Ċ @ Writing Converter Ċ class ĠUser Write Converter Ġ: ĠConverter < User , ĠOut bound Row > Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġconvert ( source : ĠUser ): ĠOut bound Row Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= ĠOut bound Row () ĊĠĠĠĠĠĠĠ Ġsource . id ?. let Ġ{ Ġresult [ quoted (" USER _ ID ")] Ġ= Ġfrom ( it ) Ġ} ĊĠĠĠĠĠĠĠ Ġresult [ quoted (" NAME ")] Ġ= Ġfrom ( source . name ) ĊĠĠĠĠĠĠĠ Ġresult [ quoted (" PASSWORD ")] Ġ= Ġfrom ( source . password ) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġresult ĊĠĠĠ Ġ} Ċ }