Skip to content

Commit

Permalink
feat: upate structure to basic
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <[email protected]>
  • Loading branch information
otaviojava committed Apr 15, 2024
1 parent 86fba44 commit f5ab198
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ public interface FruitRepository extends BasicRepository<Fruit, String> {
@Find
@OrderBy("name")
Page<Fruit> offSet(PageRequest pageRequest);

long countBy();
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void onStart(@Observes StartupEvent ev) {

void onStop(@Observes ShutdownEvent ev) {
LOGGER.info("The application is stopping...");
fruitRepository.deleteAll();
fruitRepository.deleteAll(fruitRepository.findAll().toList());
}

}

0 comments on commit f5ab198

Please sign in to comment.