theodo-fintech / spring-search

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

Query with boolean parameters #6

Closed NH0 closed 3 years ago

NH0 commented 5 years ago

For the moment with a model of the kind :

@Entity
@Table(name="USERS")
data class Users(
        @Id
        @GeneratedValue(strategy = GenerationType.AUTO)
        var userId: Long? = null,

        @Column(name = "isAdmin")
        var isAdmin: Boolean = false,
) { }

The following query will not work : ?search=isAdmin:false

Any query with the isAdmin parameter will not work as Boolean types isn't supported yet.

MollardMichael commented 5 years ago

I've got a proposal for Boolean parameters and other (date as an example).

You can check it out here -> https://github.com/sipios/spring-search/pull/10

luc-boussant commented 3 years ago

The Pull request has been merged :)