completed zesa journey

This commit is contained in:
2025-06-27 11:33:49 +02:00
parent fdd3a224ed
commit 6ad1f55d4b
25 changed files with 762 additions and 56 deletions

View File

@@ -39,7 +39,7 @@ public class Utils {
public static String getUid(){
return UUID.randomUUID().toString();
}
public static <T> T getJson(String json, Class<T> clazz){
public static <T> T fromJson(String json, Class<T> clazz){
ObjectMapper mapper = new ObjectMapper();
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
mapper.setDateFormat(new StdDateFormat().withColonInTimeZone(true));
@@ -56,7 +56,7 @@ public class Utils {
return (T) obj;
}
public static String setJson(Object obj){
public static String toJson(Object obj){
ObjectMapper mapper = new ObjectMapper();
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
mapper.setDateFormat(new StdDateFormat().withColonInTimeZone(true));