package com.gzzm.lobster.config;

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

import java.util.List;

public abstract class SystemConfigEntryDao extends GeneralDao {

    @OQL("select c from SystemConfigEntry c where c.configKey=:1")
    public abstract SystemConfigEntry getByKey(String configKey) throws Exception;

    @OQL("select c from SystemConfigEntry c order by c.configKey asc")
    public abstract List<SystemConfigEntry> listAll() throws Exception;
}
