Merge pull request #16

dev
This commit is contained in:
TitiOnFire 2024-02-03 14:37:12 +01:00 committed by GitHub
commit e92e75f371
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 1 deletions

View File

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

View File

@ -34,7 +34,8 @@ public class MembreService {
public SimpleCombModel find(int licence, String np) throws Throwable { public SimpleCombModel find(int licence, String np) throws Throwable {
return VertxContextSupport.subscribeAndAwait(() -> Panache.withTransaction(() -> 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 { public SimpleCombModel findByIdOptionalComb(long id) throws Throwable {

View File

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