systems.dennis.shared.mongo.form.DefaultForm Maven / Gradle / Ivy
The newest version!
package systems.dennis.shared.mongo.form;
import org.springframework.data.domain.Sort;
import systems.dennis.shared.entity.KeyValue;
import systems.dennis.shared.form.AbstractForm;
import java.io.Serializable;
import java.util.List;
public interface DefaultForm extends AbstractForm {
String ID_FIELD= "id";
String getId();
default KeyValue defaultSearchOrderField(){
return new KeyValue(ID_FIELD, Sort.Direction.DESC);
}
default String asValue(){
return toString();
}
}