theodo-fintech / spring-search

Provides advanced search capabilities to a JPA entity
MIT License
193 stars 44 forks source link

Parameter value [true] did not match expected type [java.lang.Boolean (n/a)]; nested exception is java.lang.IllegalArgumentException: Parameter value [true] did not match expected type [java.lang.Boolean (n/a)] #12

Closed nivekalara237 closed 3 years ago

nivekalara237 commented 5 years ago

I can not do a query on a Boolean type. here is my model `

import ... @Getter(AccessLevel.PUBLIC) @Setter(AccessLevel.PUBLIC) @ToString @Entity @Table(name = "plan_travail") public class PlanTravail extends Auditable implements Serializable { @Id private Long id; @Column(name = "entreprise_id") private Long entrepriseId; @Column(name = "fuseau_horaire", columnDefinition = "varchar(64) default 'Africa/Douala'") private String fuseauHoraire; @Column(name = "par_defaut") private boolean parDefaut; } ` and here is the query in question: http://localhost:8097/api/search/planTravails?search=parDefaut:true

luc-boussant commented 3 years ago

We just merge a pull request that implements this feature