From b7bf8d4c3b15a9c55cc007d862277b2f73ee1988 Mon Sep 17 00:00:00 2001 From: ayoub anbara Date: Sat, 15 Mar 2025 15:00:10 +0000 Subject: [PATCH] Update data.adoc No need to declare the method that create a bean as a public, and no need to declare interface that extends PagingAndSortingRepository with @Repository Signed-off-by: ayoub anbara --- docs/modules/ROOT/pages/servlet/integrations/data.adoc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/modules/ROOT/pages/servlet/integrations/data.adoc b/docs/modules/ROOT/pages/servlet/integrations/data.adoc index 79a0efe53a0..77a305eafe7 100644 --- a/docs/modules/ROOT/pages/servlet/integrations/data.adoc +++ b/docs/modules/ROOT/pages/servlet/integrations/data.adoc @@ -16,7 +16,7 @@ Java:: [source,java,role="primary"] ---- @Bean -public SecurityEvaluationContextExtension securityEvaluationContextExtension() { +SecurityEvaluationContextExtension securityEvaluationContextExtension() { return new SecurityEvaluationContextExtension(); } ---- @@ -50,7 +50,6 @@ Java:: + [source,java,role="primary"] ---- -@Repository public interface MessageRepository extends PagingAndSortingRepository { @Query("select m from Message m where m.to.id = ?#{ principal?.id }") Page findInbox(Pageable pageable); @@ -61,7 +60,6 @@ Kotlin:: + [source,kotlin,role="secondary"] ---- -@Repository interface MessageRepository : PagingAndSortingRepository { @Query("select m from Message m where m.to.id = ?#{ principal?.id }") fun findInbox(pageable: Pageable): Page