@@ -0,0 +1,2039 @@
+package com.hida.dao;%0A%0Aimport com.hida.model.Setting;%0Aimport com.hida.model.TokenType;%0Aimport java.util.List;%0Aimport org.hibernate.Criteria;%0Aimport org.hibernate.Query;%0Aimport org.hibernate.criterion.Restrictions;%0Aimport org.springframework.stereotype.Service;%0Aimport org.springframework.transaction.annotation.Transactional;%0A%0A/**%0A * missing javadoc%0A *%0A * @author lruffin%0A */%0A@Service(%22settingDao%22)%0A@Transactional%0Apublic class SettingDaoImpl extends AbstractDao%3CInteger, Setting%3E implements SettingDao %7B%0A%0A    /**%0A     * missing javadoc%0A     *%0A     * @param setting%0A     */%0A    @Override%0A    public void save(Setting setting) %7B%0A        persist(setting);%0A    %7D%0A%0A    /**%0A     * missing javadoc%0A     *%0A     * @param setting%0A     */%0A    @Override%0A    public void deleteSetting(Setting setting) %7B%0A        delete(setting);%0A    %7D%0A%0A    /**%0A     * missing javadoc%0A     *%0A     * @return%0A     */%0A    @Override%0A    public List%3CSetting%3E findAllSettings() %7B%0A        Criteria criteria = createEntityCriteria();%0A        return (List%3CSetting%3E) criteria.list();%0A    %7D%0A%0A    /**%0A     * missing javadoc%0A     *%0A     * @param id%0A     * @return%0A     */%0A    @Override%0A    public Setting findSettingById(int id) %7B%0A        Criteria criteria = createEntityCriteria();%0A        criteria.add(Restrictions.eq(%22id%22, id));%0A        return (Setting) criteria.uniqueResult();%0A    %7D%0A%0A    /**%0A     * missing javadoc%0A     *%0A     * @param Prefix%0A     * @param TokenType%0A     * @param CharMap%0A     * @param RootLength%0A     * @param SansVowels%0A     * @return%0A     */%0A    @Override%0A    public List%3CSetting%3E findSetting(String Prefix, TokenType TokenType, String CharMap,%0A            int RootLength, boolean SansVowels) %7B%0A        Query query = this.getSession().createSQLQuery(%0A                String.format(%22Select from USED_SETTING where prefix='%25s' and tokenType='%25s' %22%0A                        + %22and charmap='%25s' and rootlength='%25d' and sansvowels='%25b'%22,%0A                        Prefix, TokenType, CharMap, RootLength, SansVowels));%0A%0A        return query.list();%0A    %7D%0A        %0A%0A%7D%0A

Create class SettingDaoImpl