package Ġcom . example . ter r aria apiv 1 . repository Ċ Ċ import Ġcom . example . ter r aria apiv 1 . model . items . Weapon Ċ import Ġorg . springframework . data . domain . Sort Ċ import Ġorg . springframework . data . jpa . repository . Jpa Repository Ċ import Ġorg . springframework . stereotype . Repository Ċ Ċ @ Repository Ċ interface ĠWeapon Repository : ĠJ pa Repository < Weapon , ĠLong > Ġ{ ĊĠĠĠ Ġfun ĠfindBy ItemName ( itemName : ĠString ): ĠList < Weapon > ĊĠĠĠ Ġfun Ġfind We apons By ( sort : ĠSort ): ĠList < Weapon > Ġ// Ġnote : ĠSort Ġcontains Ġthe Ġfield Ġto Ġuse ĊĠĠĠ Ġfun ĠfindBy ItemName StartsWith ( itemName : ĠString ): ĠList < Weapon > Ċ }