Closed tolgasaglik closed 6 years ago
your where clause contains a question mark but you have not supplied the parameter string, try changing it to:
where("String =?",string)
@tolgasaglik Did you try @mgautam099's suggestion and what was the result?
List- queryItems = new ArrayList<>(getAll(String string)); // Crash point
Function in Item class extends Model:
public static List- getAll(String string) {
return new Select()
.from(Item.class)
.where("String = ?")
.orderBy("Name ASC")
.execute();
}