是否可以用这种方式编写查询?
public enum Status {SUCCESS, FAIL}
@Document
public class Machine {
@Id
private String id;
private Status status;
private boolean test;
}
public interface MachineRepo extends MongoRepository<Machine, String> {
// This is possible !!
Machine findByTestFalse();
// Is this possible ?? <-- Here is the question!!
Machine findByStatusSuccess();
}