darrachequesne / spring-data-jpa-datatables

Spring Data JPA extension to work with the great jQuery plugin DataTables (https://datatables.net/)
Apache License 2.0
440 stars 174 forks source link

Add an example with an enum field #136

Open darrachequesne opened 2 years ago

darrachequesne commented 2 years ago

See https://github.com/darrachequesne/spring-data-jpa-datatables-sample/issues/15

pranatimittal commented 2 years ago

I would like work on it,if it's open. Do I have to add enum field in employee and related functions?

Magistrus commented 2 years ago

Yes, you need to add a field to the Employee class

Example:

    @Enumerated(EnumType.STRING) 
    private Sex sex;

    enum Sex {
        MALE,
        FEMALE
    }
hsteinmueller commented 2 years ago

see https://github.com/darrachequesne/spring-data-jpa-datatables-sample/pull/16