Skip to content

Commit

Permalink
feat: enhances the documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed Sep 15, 2023
1 parent 3c52b86 commit d3d6562
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,11 @@ private static List<Class<DataRepository>> loadRepositories(ScanResult scan) {
@SuppressWarnings("rawtypes")
private static void checkInvalidRepositories(List<Class<DataRepository>> classes) {
if (!classes.isEmpty()) {
String message = classes.stream()
String repositories = classes.stream()
.map(Class::getName)
.collect(Collectors.joining(","));
throw new MappingException("The following repositories are invalid because the Entities must have the Entity annotation: " + message);
throw new MappingException("The following repositories are invalid because the Entities must have the " +
jakarta.nosql.Entity.class.getName() + " annotation: " + repositories);
}
}

Expand Down

0 comments on commit d3d6562

Please sign in to comment.