working on project list: introducing task list
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
package de.srsoftware.umbrella.items;
|
||||
|
||||
import static de.srsoftware.tools.jdbc.Condition.equal;
|
||||
import static de.srsoftware.tools.jdbc.Query.SelectQuery.ALL;
|
||||
import static de.srsoftware.tools.jdbc.Query.select;
|
||||
import static de.srsoftware.umbrella.core.Constants.COMPANY_ID;
|
||||
import static de.srsoftware.umbrella.core.ResponseCode.HTTP_SERVER_ERROR;
|
||||
@@ -25,7 +26,7 @@ public class SqliteDb implements ItemDb{
|
||||
public Collection<Item> list(long companyId) throws UmbrellaException {
|
||||
try {
|
||||
var items = new HashSet<Item>();
|
||||
var rs = select("*").from(TABLE_ITEMS).where(COMPANY_ID, equal(companyId)).exec(db);
|
||||
var rs = select(ALL).from(TABLE_ITEMS).where(COMPANY_ID, equal(companyId)).exec(db);
|
||||
while (rs.next()) items.add(Item.of(rs));
|
||||
rs.close();
|
||||
return items;
|
||||
|
||||
Reference in New Issue
Block a user