fix: reflection

This commit is contained in:
Thibaut Valentin 2024-02-03 14:26:10 +01:00
parent 110320b929
commit b4e0d0fa3d
3 changed files with 8 additions and 1 deletions

View File

@ -169,6 +169,9 @@
<properties>
<skipITs>false</skipITs>
<quarkus.package.type>native</quarkus.package.type>
<quarkus.native.additional-build-args>
-H:+UnlockExperimentalVMOptions
</quarkus.native.additional-build-args>
</properties>
</profile>
</profiles>

View File

@ -34,7 +34,8 @@ public class MembreService {
public SimpleCombModel find(int licence, String np) throws Throwable {
return VertxContextSupport.subscribeAndAwait(() -> Panache.withTransaction(() ->
repository.find("licence = ?1 AND (lname = ?2 OR fname = ?2)", licence, np).firstResult().map(SimpleCombModel::fromModel)));
repository.find("licence = ?1 AND (lname collate UTF8_GENERAL_CI LIKE ?2 OR fname collate UTF8_GENERAL_CI LIKE ?2)",
licence, np).firstResult().map(SimpleCombModel::fromModel)));
}
public SimpleCombModel findByIdOptionalComb(long id) throws Throwable {

View File

@ -1,5 +1,8 @@
package fr.titionfire.ffsaf.net2;
import io.quarkus.runtime.annotations.RegisterForReflection;
@RegisterForReflection
public enum MessageType {
REQUEST, REPLY, ERROR, NOTIFY
}