package com.gzzm.lobster.workspace;

import net.cyan.thunwind.annotation.OQL;
import net.cyan.thunwind.dao.GeneralDao;

/**
 * WorkspaceDao —— Workspace 持久化 / Workspace persistence.
 */
public abstract class WorkspaceDao extends GeneralDao {

    @OQL("select w from Workspace w where w.workspaceId=:1")
    public abstract Workspace getWorkspace(String workspaceId) throws Exception;

    @OQL("select w from Workspace w where w.threadId=:1")
    public abstract Workspace getByThread(String threadId) throws Exception;
}
