package Ġcom . example . happy b aby . dao Ċ Ċ import Ġorg . springframework . stereotype . Repository Ċ import Ġorg . hibernate . SessionFactory Ċ import Ġcom . example . happy b aby . entity . C ater g ory ; Ċ Ċ @ Repository (" C ater g ory Dao ") Ċ open Ġclass ĠC ater g ory Dao ( session Factory : ĠSession Factory ) Ġ: Base Dao < C ater g ory >( session Factory ){ ĊĊĠĠ Ġoverride Ġfun Ġget Table (): ĠClass < C ater g ory > Ġ{ ĊĠĠĠĠĠĠ Ġreturn ĠC ater g ory :: class . java ĊĠĠĠ Ġ} Ċ Ċ } Ċ