I have to @Override an abstract function and offer an array of strings (defining searchable fields for my datatable):
@Override
public String[] getQueryFields() {
return new String[] { "email", "firstname", "lastname", "lastLogin"};
}
When I look on my code I could imagine that I just reference a class and annotate the JPA column fields, e.g. by @Searchable to signal this capability and build my array:
@Column
@Getter
@Setter
...
@Searchable
private String email;
Is there a way to handle this?