quarkiverse / quarkus-renarde

Server-side Web Framework with Qute templating, magic/easier controllers, auth, reverse-routing
Apache License 2.0
73 stars 16 forks source link

Backoffice: not setting a required enum property gives exception instead of validation error message on page #211

Open FroMage opened 2 months ago

FroMage commented 2 months ago
2024-05-06 08:17:52,025 koholint [60417] ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (executor-thread-710) HTTP Request to /_renarde/backoffice/Talk/create failed, error id: 9aa04c33-9d79-4036-8d6d-335bb0c2742d-10: jakarta.validation.ConstraintViolationException: Validation failed for classes [model.Talk] during persist time for groups [jakarta.validation.groups.Default, ]
List of constraint violations:[
        ConstraintViolationImpl{interpolatedMessage='must not be null', propertyPath=isBreak, rootBeanClass=class model.Talk, messageTemplate='{jakarta.validation.constraints.NotNull.message}'}
]
@Entity
public class Talk extends PanacheEntity implements Comparable<Talk> {

    @NotNull
    @Enumerated(EnumType.STRING)
    public BreakType isBreak;
}