package Ġcom . chr is wk . kafka . sche m are gistry Ċ Ċ import Ġorg . hibernate . annotations . Creation Timestamp Ċ import Ġorg . hibernate . annotations . Update Timestamp Ċ import Ġorg . springframework . data . jpa . repository . Query Ċ import Ġorg . springframework . data . repository . Paging And Sorting Repository Ċ import Ġjava . io . Serializable Ċ import Ġjava . time . Instant Ċ import Ġjava . util . Optional Ċ import Ġjava . util . UUID Ċ import Ġjavax . persistence . Column Ċ import Ġjavax . persistence . Embed d able Ċ import Ġjavax . persistence . Embedded Id Ċ import Ġjavax . persistence . Entity Ċ import Ġjavax . persistence . Id Ċ import Ġjavax . persistence . Id Class Ċ import Ġjavax . persistence . Table Ċ Ċ @ Embed d able Ċ data Ġclass ĠSchema Id ( val Ġid : ĠLong , Ġval Ġsubject : ĠString , Ġval Ġversion : ĠLong ) Ġ: ĠSerializable Ċ Ċ @ Entity Ċ @ Table ( name Ġ= Ġ" schemas ") Ċ data Ġclass ĠSchema ( ĊĠĠĠ Ġ@ Embedded Id ĊĠĠĠ Ġval Ġschema Id : ĠSchema Id , ĊĠĠĠ Ġ@ Column ( name Ġ= Ġ" schema _ definition ") Ġval Ġschema : ĠString , ĊĠĠĠ Ġval Ġdeleted : ĠBoolean , ĊĠĠĠ Ġ@ Creation Timestamp ĊĠĠĠ Ġval Ġcreated : ĠInstant Ġ= ĠInstant . now (), ĊĠĠĠ Ġ@ Update Timestamp ĊĠĠĠ Ġval Ġupdated : ĠInstant Ġ= ĠInstant . now () Ċ ) Ċ Ċ interface ĠSchema Repository Ġ: ĠP aging And Sorting Repository < Schema , ĠSchema Id > Ġ{ ĊĠĠĠ Ġfun ĠfindAll By Schema Id Id ( id : ĠLong ): ĠList < Schema > ĊĠĠĠ Ġfun ĠfindAll By Schema Id Id And Schema Id Subject ( id : ĠLong , Ġsubject : ĠString ): ĠList < Schema > ĊĠĠĠ Ġfun ĠfindAll By Schema Id Subject ( subject : ĠString ): ĠList < Schema > ĊĠĠĠ Ġfun ĠfindBy Schema Id Subject And Schema Id Version ( subject : ĠString , Ġversion : ĠLong ): ĠSchema ? Ċ }