Migrate hibernate xml annotation to annotations

This commit is contained in:
Paulo Gustavo Veiga
2022-01-16 20:01:56 -08:00
parent 4668cba3bf
commit 7fc91abe59
105 changed files with 306 additions and 10790 deletions

View File

@@ -28,12 +28,10 @@ import java.util.List;
public interface MindmapService {
String TAG_SEPARATOR = " ";
@Nullable
Mindmap findMindmapById(int id);
Mindmap getMindmapByTitle(String title, User user);
Mindmap getMindmapByTitle(@NotNull String title, User user);
List<Collaboration> findCollaborations(@NotNull User user);

View File

@@ -168,7 +168,7 @@ public class MindmapServiceImpl
}
@Override
public void addMindmap(@NotNull Mindmap map, @NotNull User user) throws WiseMappingException {
public void addMindmap(@NotNull Mindmap map, @NotNull User user) {
final String title = map.getTitle();

View File

@@ -32,7 +32,7 @@ public interface UserService {
User getUserBy(String email);
User getUserBy(long id);
User getUserBy(int id);
void updateUser(User user);

View File

@@ -181,7 +181,7 @@ public class UserServiceImpl
@Override
@Nullable
public User getUserBy(long id) {
public User getUserBy(int id) {
return userManager.getUserBy(id);
}