package com.blstream.myhoard.db.dao;

import java.util.List;

public interface ResourceDAO<T> {

	public List<T> getList();

	public T get(int id);

	public void create(T obj);

	public void update(T obj);

	public void remove(int id);

}

@@ -53,16 +53,116 @@
 il.List;
+%0Aimport org.hibernate.SessionFactory;%0Aimport org.springframework.beans.factory.annotation.Autowired;
 %0A%0Apublic
@@ -330,10 +330,86 @@
 t id);%0A%0A
+%09@Autowired%0A%09public void setSessionFactory(SessionFactory sessionFactory);%0A%0A
 %7D%0A

Update ResourceDAO.java