PageRenderTime 17ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/web/DRCP/src/com/bluesky/drcp/persistence/dao/hibernate/LogDaoImpl.java

http://drcp.googlecode.com/
Java | 19 lines | 12 code | 7 blank | 0 comment | 0 complexity | 4aaad833bcfe600782ba00199ebd9392 MD5 | raw file
 1package com.bluesky.drcp.persistence.dao.hibernate;
 2
 3import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
 4
 5import com.bluesky.drcp.business.Log;
 6import com.bluesky.drcp.persistence.dao.LogDao;
 7
 8public class LogDaoImpl extends HibernateDaoSupport implements LogDao {
 9
10	public void insert(Log o) {
11		getHibernateTemplate().save(o);
12	}
13
14	public Log getById(String id) {
15		return (Log) getHibernateTemplate().get(Log.class, id);
16
17	}
18
19}