Skip to content
Snippets Groups Projects
Commit 2ae466ba authored by OZGCloud's avatar OZGCloud
Browse files

[fix] remove extra method from pojo

parent ad51a066
Branches
Tags
No related merge requests found
...@@ -126,7 +126,7 @@ class UserRepository implements PanacheMongoRepository<User> { ...@@ -126,7 +126,7 @@ class UserRepository implements PanacheMongoRepository<User> {
} }
public Stream<String> findAllDeletedUserIds() { public Stream<String> findAllDeletedUserIds() {
return find(DELETED_FIELD, true).project(UserIdProjection.class).stream().map(UserIdProjection::idAsString); return find(DELETED_FIELD, true).project(UserIdProjection.class).stream().map(UserIdProjection::getId).map(ObjectId::toHexString);
} }
public void deleteById(String id) { public void deleteById(String id) {
...@@ -138,10 +138,6 @@ class UserRepository implements PanacheMongoRepository<User> { ...@@ -138,10 +138,6 @@ class UserRepository implements PanacheMongoRepository<User> {
@Getter @Getter
public static class UserIdProjection { public static class UserIdProjection {
private ObjectId id; private ObjectId id;
String idAsString() {
return id.toHexString();
}
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment