spring-data-jpa-datatables icon indicating copy to clipboard operation
spring-data-jpa-datatables copied to clipboard

Add an example with an enum field

Open darrachequesne opened this issue 4 years ago • 3 comments

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

darrachequesne avatar Oct 03 '21 21:10 darrachequesne

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

pranatimittal avatar Oct 05 '21 16:10 pranatimittal

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

Example:

 @Enumerated(EnumType.STRING) 
 private Sex sex;

 enum Sex {
     MALE,
     FEMALE
 }

Magistrus avatar Oct 06 '21 07:10 Magistrus

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

hsteinmueller avatar Oct 10 '21 16:10 hsteinmueller