working on project list: introducing task list
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
package de.srsoftware.umbrella.contact;
|
||||
|
||||
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.contact.Constants.TABLE_CONTACTS;
|
||||
import static de.srsoftware.umbrella.contact.Constants.TABLE_CONTACTS_USERS;
|
||||
@@ -24,7 +25,7 @@ public class SqliteDb implements ContactDb{
|
||||
@Override
|
||||
public Collection<Contact> listContactsOf(long userId) throws UmbrellaException{
|
||||
try {
|
||||
var rs = select("*").from(TABLE_CONTACTS).leftJoin(ID,TABLE_CONTACTS_USERS,USER_ID).where(USER_ID,equal(userId)).exec(conn);
|
||||
var rs = select(ALL).from(TABLE_CONTACTS).leftJoin(ID,TABLE_CONTACTS_USERS,USER_ID).where(USER_ID,equal(userId)).exec(conn);
|
||||
var contacts = new HashSet<Contact>();
|
||||
while (rs.next()) contacts.add(Contact.of(rs));
|
||||
rs.close();
|
||||
|
||||
Reference in New Issue
Block a user