package com.dongguk.bus;

import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;

//Dao가 갖춰야할것은 SqlSessionFactory

public class PredictDAO {
	private SqlSessionFactory sqlSessionFactory;
	public PredictDAO(){
	}

	public List<Account> selectAll(){
		SqlSession session = sqlSessionFactory.openSession();

		try 
		{
			// 여기로 가서 처리해라
			return session.selectList("sqlMapper.selectAll");
		}
		finally
		{
			session.close();
		}
	}
	
	
}
@@ -360,43 +360,8 @@
 %0D%0A%0D%0A
-//Dao%EA%B0%80 %EA%B0%96%EC%B6%B0%EC%95%BC%ED%95%A0%EA%B2%83%EC%9D%80 SqlSessionFactory%0D%0A%0D%0A
 publ
@@ -571,27 +571,8 @@
 %09%7B%0D%0A
-%09%09%09// %EC%97%AC%EA%B8%B0%EB%A1%9C %EA%B0%80%EC%84%9C %EC%B2%98%EB%A6%AC%ED%95%B4%EB%9D%BC%0D%0A
 %09%09%09r
@@ -679,8 +679,10 @@
 %0A%09%0D%0A%09%0D%0A%7D
+%0D%0A

Comment Modified