package Ġbr . com . wood river . r pg . adapter . output . database Ċ Ċ import Ġbr . com . wood river . r pg . adapter . output . database . converter . to Domain Ċ import Ġbr . com . wood river . r pg . adapter . output . database . converter . to Entity Ċ import Ġbr . com . wood river . r pg . adapter . output . database . jpa . Bag Jpa Repository Ċ import Ġbr . com . wood river . r pg . adapter . output . logging . logger Ċ import Ġbr . com . wood river . r pg . application . domain . Bag Ċ import Ġbr . com . wood river . r pg . application . port . output . Bag Repository Port Ċ import Ġnet . logstash . log back . argument . Structured Arguments . kv Ċ import Ġorg . springframework . stereotype . Repository Ċ Ċ @ Repository Ċ class ĠBag Repository ( ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġbag Jpa Repository : ĠBag Jpa Repository , Ċ ): ĠBag Repository Port Ġ{ ĊĊĠĠĠ Ġval Ġlogger Ġ= Ġlogger < Bag Repository >() ĊĊĠĠĠ Ġoverride Ġfun Ġsave ( bag : ĠBag ): ĠBag Ġ{ ĊĠĠĠĠĠĠĠ Ġlogger . info (" Starting Ġto Ġsave Ġbag Ġinto Ġdatabase ") ĊĠĠĠĠĠĠĠ Ġreturn Ġbag Jpa Repository . save ( bag . to Entity ()). apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġlogger . info (" Done Ġsuccessfully Ġto Ġsave Ġbag Ġinto Ġdatabase Ġfor Ġ[ {} ]", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġkv (" bag Id ", Ġid )) ĊĠĠĠĠĠĠĠ Ġ}. to Domain () ĊĠĠĠ Ġ} Ċ }