chore(quarkus-327): bump to Quarkus 3.27.3 LTS, rename quarkus-resteasy-reactive → quarkus-rest, fix testGetAuditQuestions map vs list, rename deprecated config keys

This commit is contained in:
2026-04-23 14:47:47 +00:00
committed by dahoud
parent 106e8f7c88
commit 9a41b4ca17
127 changed files with 17488 additions and 9557 deletions

View File

@@ -1,52 +1,52 @@
package dev.lions.dtos;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.ObjectMapper;
import dev.lions.models.Notification;
import dev.lions.models.NotificationStatus;
import dev.lions.models.NotificationType;
import lombok.Builder;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import java.time.LocalDateTime;
@Data
@Builder
@Slf4j
public class NotificationDTO {
private Long id;
private String title;
private String message;
private NotificationType type;
private NotificationStatus status;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime timestamp;
private String actionUrl;
private Long targetUserId;
private static final ObjectMapper objectMapper = new ObjectMapper();
public static NotificationDTO from(Notification notification) {
return NotificationDTO.builder()
.id(notification.getId())
.title(notification.getTitle())
.message(notification.getMessage())
.type(notification.getType())
.status(notification.getStatus())
.timestamp(notification.getTimestamp())
.actionUrl(notification.getActionUrl())
.targetUserId(notification.getTargetUserId())
.build();
}
public String toJson() {
try {
return objectMapper.writeValueAsString(this);
} catch (Exception e) {
log.error("Error converting notification to JSON", e);
return String.format("{\"error\":\"Failed to serialize notification %d\"}", id);
}
}
package dev.lions.dtos;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.ObjectMapper;
import dev.lions.models.Notification;
import dev.lions.models.NotificationStatus;
import dev.lions.models.NotificationType;
import lombok.Builder;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import java.time.LocalDateTime;
@Data
@Builder
@Slf4j
public class NotificationDTO {
private Long id;
private String title;
private String message;
private NotificationType type;
private NotificationStatus status;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime timestamp;
private String actionUrl;
private Long targetUserId;
private static final ObjectMapper objectMapper = new ObjectMapper();
public static NotificationDTO from(Notification notification) {
return NotificationDTO.builder()
.id(notification.getId())
.title(notification.getTitle())
.message(notification.getMessage())
.type(notification.getType())
.status(notification.getStatus())
.timestamp(notification.getTimestamp())
.actionUrl(notification.getActionUrl())
.targetUserId(notification.getTargetUserId())
.build();
}
public String toJson() {
try {
return objectMapper.writeValueAsString(this);
} catch (Exception e) {
log.error("Error converting notification to JSON", e);
return String.format("{\"error\":\"Failed to serialize notification %d\"}", id);
}
}
}