<commit_before><commit_msg>dao for study site<commit_after>package edu.northwestern.bioinformatics.studycalendar.dao;

import edu.northwestern.bioinformatics.studycalendar.domain.StudySite;

import java.util.List;


import org.springframework.orm.hibernate3.support.HibernateDaoSupport;


/**
 * @author <NAME>
 */
public class StudySiteDao extends HibernateDaoSupport {
    public StudySite getById(int id) {
        return (StudySite) getHibernateTemplate().get(StudySite.class, new Integer(id));
    }

    public void save(StudySite studySite) {
        getHibernateTemplate().saveOrUpdate(studySite);
    }

    public List<StudySite> getAll() {
        return getHibernateTemplate().find("from StudySite");
    }
}
{'fraction_non_alphanumeric': 0.10694444444444444, 'fraction_numerical': 0.001388888888888889, 'mean_word_length': 4.589147286821706, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5453179', 'n_tokens_mistral': 230, 'n_tokens_neox': 209, 'n_words': 38}