package Ġcom . example . employee administration . repositories Ċ Ċ import Ġcom . example . employee administration . model . aggreg ates . Department Ċ import Ġorg . springframework . data . jpa . repository . Jpa Repository Ċ import Ġorg . springframework . stereotype . Repository Ċ import Ġorg . springframework . transaction . annotation . Transactional Ċ import Ġjava . util .* Ċ Ċ @ Repository Ċ @ Transactional ( readOnly Ġ= Ġtrue ) Ċ interface ĠDepartment Repository : ĠJ pa Repository < Department , ĠLong > Ġ{ ĊĊĠĠĠ Ġfun ĠgetAll By Deleted False (): ĠList < Department > ĊĠĠĠ Ġfun Ġget ById And Deleted False ( id : ĠLong ): ĠOptional < Department > ĊĠĠĠ Ġfun Ġget ByName And Deleted False ( name : ĠString ): ĠOptional < Department > Ċ Ċ }