コード例:
public List userCreateTable(int inputId) {
List<TimeLoggingDetail> tableView = new ArrayList<TimeLoggingDetail>();
tableView = database.createQuery("SELECT t FROM TimeLoggingDetail t WHERE t.loggingId = :loggingId").setParameter("loggingId", inputId).getResultList();
return tableView;
}
こんにちは、
私のデータテーブルでは、たとえばinputIdが4であるすべての結果が得られ、完全に機能します。私の質問は、複数のinputIdがある場合、どのように選択するのですか? loggingId が 4、6、8、9 などのすべてを選択したいですか?
ありがとうございます。それでは、お元気で。