package com.hida.dao;

import com.hida.model.DefaultSetting;
import org.springframework.stereotype.Repository;

/**
 * missing javadoc
 *
 * @author lruffin
 */
@Repository("defaultSettingDao")
public class DefaultSettingDaoImpl extends AbstractDao<Integer, DefaultSetting>
        implements DefaultSettingDao {

    /**
     * missing javadoc
     *
     * @param setting
     */
    @Override
    public void save(DefaultSetting setting) {
        persist(setting);
    }   

    /**
     * missing javadoc
     *
     * @param id
     * @param name
     * @return
     */
    private DefaultSetting findById(int id) {
        return getByKey(id);
    }

    /**
     * missing javadoc
     *
     * @return
     */
    @Override
    public DefaultSetting getDefaultSetting() {
        // An Id of 1 is sought after because they're automatically generated from 1
        return findById(1);
    }

}

@@ -112,31 +112,61 @@
 %0A/**%0A * 
-missing javadoc
+Programmatic implementation DefaultSettingDao
 %0A *%0A * @
@@ -356,52 +356,118 @@
   * 
-missing javadoc%0A     *%0A     * @param setting
+Saves a DefaultSetting object to a database%0A     *%0A     * @param setting The DefaultSetting object to be saved
 %0A   
@@ -563,19 +563,16 @@
 );%0A    %7D
-   
 %0A%0A    /*
@@ -584,81 +584,171 @@
   * 
-missing javadoc%0A     *%0A     * @param id%0A     * @param name%0A     * @return
+Finds a DefaultSetting object in a database%0A     *%0A     * @param id The unique id of the DefaultSetting object%0A     * @return The DefaultSetting with the unique id
 %0A   
@@ -853,23 +853,48 @@
   * 
-missing javadoc
+Returns the DefaultSetting of the Minter
 %0A   
@@ -911,16 +911,31 @@
  @return
+ DefaultSetting
 %0A     */

Add javadocs to DefaultSettingDaoImpl