[F] Fix hibernate enhance compilation

This commit is contained in:
Azalea
2024-11-20 22:29:45 -05:00
parent 10ebd61519
commit e32a2bbe81
161 changed files with 174 additions and 177 deletions

View File

@@ -30,7 +30,7 @@ public class GetClientBookkeepingHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long placeId = ((Number) request.get("placeId")).longValue();
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@@ -30,7 +30,7 @@ public class GetClientTestmodeHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long placeId = ((Number) request.get("placeId")).longValue();
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@@ -35,7 +35,7 @@ public class GetGameEventHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
Integer type = (Integer) request.get("type");
List<GameEvent> eventIdList = gameEventRepository.findAll();

View File

@@ -33,7 +33,7 @@ public class GetGameIdlistHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
Integer type = (Integer) request.get("type");
Optional<PropertyEntry> propertyEntryOptional;

View File

@@ -29,7 +29,7 @@ public class GetGameMessageHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
Integer type = (Integer) request.get("type");
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@@ -29,7 +29,7 @@ public class GetGameMusicReleaseStateHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
// TODO: Find out what this does

View File

@@ -34,7 +34,7 @@ public class GetGamePointHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
// This value is always false
Boolean isAllGP = (Boolean) request.get("isAllGP");

View File

@@ -34,7 +34,7 @@ public class GetGamePresentHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
Boolean isAllPresent = (Boolean) request.get("isAllPresent");
List<GamePresent> presentList = gamePresentRepository.findAll();

View File

@@ -34,7 +34,7 @@ public class GetGameRankingHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
// 1 is current, 2 is old
// See ADT_Ranking.cs
Integer type = (Integer) request.get("type");

View File

@@ -34,7 +34,7 @@ public class GetGameRewardHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
Boolean isAllGP = (Boolean) request.get("isAllReward");
List<GameReward> rewardList = gameRewardRepository.findAll();

View File

@@ -38,7 +38,7 @@ public class GetGameSettingHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
PropertyEntry start = propertyEntryRepository.findByPropertyKey("reboot_start_time")
.orElseGet(() -> new PropertyEntry("reboot_start_time", "2020-01-01 23:59:00.0"));

View File

@@ -29,7 +29,7 @@ public class GetGameTechMusicHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
List<Object> techMusicList = new ArrayList<>();
// This endpoint seems related to "techchallengeevent" in game data, TBD

View File

@@ -35,7 +35,7 @@ public class GetUserActivityHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
Integer kind = (Integer) request.get("kind");

View File

@@ -34,7 +34,7 @@ public class GetUserBossHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
List<UserBoss> userBossList = userBossRepository.findByUser_Card_ExtId(userId);

View File

@@ -30,7 +30,7 @@ public class GetUserBpBaseHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@@ -35,7 +35,7 @@ public class GetUserCardHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
Integer maxCount = (Integer) request.get("maxCount");
Integer nextIndex = (Integer) request.get("nextIndex");

View File

@@ -34,7 +34,7 @@ public class GetUserChapterHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
List<UserChapter> chapterList = userChapterRepository.findByUser_Card_ExtId(userId);

View File

@@ -35,7 +35,7 @@ public class GetUserCharacterHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
Integer maxCount = (Integer) request.get("maxCount");
Integer nextIndex = (Integer) request.get("nextIndex");

View File

@@ -34,7 +34,7 @@ public class GetUserDataHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
Optional<UserData> userDataOptional = userDataRepository.findByCard_ExtId(userId);

View File

@@ -34,7 +34,7 @@ public class GetUserDeckByKeyHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
List<UserDeck> deckList = userDeckRepository.findByUser_Card_ExtId(userId);

View File

@@ -34,7 +34,7 @@ public class GetUserEventMusicHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
List<UserEventMusic> eventMusicList = userEventMusicRepository.findByUser_Card_ExtId(userId);

View File

@@ -34,7 +34,7 @@ public class GetUserEventPointHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
List<UserEventPoint> eventPointList = userEventPointRepository.findByUser_Card_ExtId(userId);

View File

@@ -38,7 +38,7 @@ public class GetUserEventRankingHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
String time = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.0"));

View File

@@ -35,7 +35,7 @@ public class GetUserItemHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
Long nextIndexVal = (Long) request.get("nextIndex");
Integer maxCount = (Integer) request.get("maxCount");

View File

@@ -34,7 +34,7 @@ public class GetUserKopHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
List<UserKop> kopList = userKopRepository.findByUser_Card_ExtId(userId);

View File

@@ -34,7 +34,7 @@ public class GetUserLoginBonusHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
List<UserLoginBonus> loginBonusList = userLoginBonusRepository.findByUser_Card_ExtId(userId);

View File

@@ -34,7 +34,7 @@ public class GetUserMemoryChapterHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
List<UserMemoryChapter> MemoryChapterList = userMemoryChapterRepository.findByUser_Card_ExtId(userId);

View File

@@ -34,7 +34,7 @@ public class GetUserMissionPointHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
List<UserMissionPoint> missionPointList = userMissionPointRepository.findByUser_Card_ExtId(userId);

View File

@@ -39,7 +39,7 @@ public class GetUserMusicHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
Integer maxCount = (Integer) request.get("maxCount");
Integer currentIndex = (Integer) request.get("nextIndex");

View File

@@ -35,7 +35,7 @@ public class GetUserMusicItemHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
Integer maxCount = (Integer) request.get("maxCount");
Integer nextIndex = (Integer) request.get("nextIndex");

View File

@@ -34,7 +34,7 @@ public class GetUserOptionHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
Optional<UserOption> userOptionOptional = userOptionRepository.findByUser_Card_ExtId(userId);

View File

@@ -42,7 +42,7 @@ public class GetUserPreviewHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
Optional<UserData> userData = userDataRepository.findByCard_ExtId(userId);

View File

@@ -29,7 +29,7 @@ public class GetUserRatinglogListHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@@ -42,7 +42,7 @@ public class GetUserRecentRatingHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
Optional<UserGeneralData> recentOptional = userGeneralDataRepository.findByUser_Card_ExtIdAndPropertyKey(userId, "recent_rating_list");

View File

@@ -30,7 +30,7 @@ public class GetUserRegionHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@@ -36,7 +36,7 @@ public class GetUserRivalDataHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
var userRivalId = ((Number) request.get("userId")).longValue();
var userRivalList = ((Collection<HashMap<String,Object>>) request.get("userRivalList"))
.stream()

View File

@@ -30,7 +30,7 @@ public class GetUserRivalHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
var userRivalId = ((Number) request.get("userId")).longValue();
Map<String, Object> resultMap = new LinkedHashMap<>();

View File

@@ -32,7 +32,7 @@ public class GetUserRivalMusicHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
var userId = ((Number) request.get("userId")).longValue();
var rivalUserId = ((Number) request.get("rivalUserId")).longValue();
var nextIndex = ((Number) request.get("nextIndex")).intValue();

View File

@@ -34,7 +34,7 @@ public class GetUserScenarioHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
List<UserScenario> userScenarioList = userScenarioRepository.findByUser_Card_ExtId(userId);

View File

@@ -34,7 +34,7 @@ public class GetUserStoryHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
List<UserStory> userStoryList = userStoryRepository.findByUser_Card_ExtId(userId);

View File

@@ -34,7 +34,7 @@ public class GetUserTechCountHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
List<UserTechCount> userTechCountList = userTechCountRepository.findByUser_Card_ExtId(userId);

View File

@@ -34,7 +34,7 @@ public class GetUserTechEventHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
List<UserTechEvent> techEventList = userTechEventRepository.findByUser_Card_ExtId(userId);

View File

@@ -38,7 +38,7 @@ public class GetUserTechEventRankingHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
String time = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.0"));

View File

@@ -34,7 +34,7 @@ public class GetUserTradeItemHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
int startChapterId = ((Number) request.get("startChapterId")).intValue();
int endChapterId = ((Number) request.get("endChapterId")).intValue();

View File

@@ -34,7 +34,7 @@ public class GetUserTrainingRoomByKeyHandler implements BaseHandler {
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
List<UserTrainingRoom> trainingRoomList = userTrainingRoomRepository.findByUser_Card_ExtId(userId);

View File

@@ -92,7 +92,7 @@ public class UpsertUserAllHandler implements BaseHandler {
}
@Override
public String handle(Map<String, Object> request) throws JsonProcessingException {
public String handle(Map<String, ?> request) throws JsonProcessingException {
long userId = ((Number) request.get("userId")).longValue();
UpsertUserAll upsertUserAll = mapper.convert(request.get("upsertUserAll"), UpsertUserAll.class);