package Ġcom . github . dan zx . x of . dat apro vider . jpa . adapter . mapper Ċ Ċ import Ġcom . github . dan zx . x of . core . filter . Comments Filter Ċ import Ġcom . github . dan zx . x of . dat apro vider . jpa . repository . specification . Comment Jpa Spec ifications . parentId Equals Ċ import Ġcom . github . dan zx . x of . dat apro vider . jpa . repository . specification . Comment Jpa Spec ifications . post Id Equals Ċ import Ġcom . github . dan zx . x of . dat apro vider . jpa . repository . specification . Comment Jpa Spec ifications . userId Equals Ċ Ċ import Ġorg . springframework . data . jpa . domain . Specification . where Ċ Ċ fun ĠComments Filter . to Specification () Ġ= Ġwhere ( userId Equals Spec ) !!. and ( post Id Equals Spec ) !!. and ( parentId Equals Spec ) !! Ċ Ċ private Ġval ĠComments Filter . userId Equals Spec ĊĠĠĠ Ġget () Ġ= ĠuserId ?. let Ġ{ ĠuserId Equals ( it ) Ġ} Ċ Ċ private Ġval ĠComments Filter . post Id Equals Spec ĊĠĠĠ Ġget () Ġ= Ġpost Id ?. let Ġ{ Ġpost Id Equals ( it ) Ġ} Ċ Ċ private Ġval ĠComments Filter . parentId Equals Spec ĊĠĠĠ Ġget () Ġ= ĠparentId ?. let Ġ{ ĠparentId Equals ( it . value ) Ġ} Ċ