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

@@ -154,7 +154,7 @@ public class MindmapController {
}
@NotNull
private Mindmap findMindmap(long mapId) throws MapCouldNotFoundException {
private Mindmap findMindmap(int mapId) throws MapCouldNotFoundException {
final Mindmap result = mindmapService.findMindmapById((int) mapId);
if (result == null) {
throw new MapCouldNotFoundException("Map could not be found " + mapId);
@@ -164,7 +164,7 @@ public class MindmapController {
}
@NotNull
private MindMapBean findMindmapBean(long mapId) throws MapCouldNotFoundException {
private MindMapBean findMindmapBean(int mapId) throws MapCouldNotFoundException {
final Mindmap mindmap = findMindmap(mapId);
return new MindMapBean(mindmap, Utils.getUser());
}