// Path: ServiceLayer/src/main/java/org/servicelayer/factory/MyBatisConnectionFactory.java
// public class MyBatisConnectionFactory {
// 
// 	private static SqlSessionFactory sessionFactory;
// 	
// 	static{
// 		try{
// 			String resource = "MyBatisConfig.xml";
// 			Reader reader = Resources.getResourceAsReader(resource);
// 			if(sessionFactory == null){
// 				sessionFactory = new SqlSessionFactoryBuilder().build(reader);
// 			}
// 		}catch(Exception e){e.printStackTrace();}
// 	}
// 	
// 	public static SqlSessionFactory getSqlSessionFactory(){
// 		return sessionFactory;
// 	}
// }
// 
// Path: ServiceLayer/src/main/java/org/servicelayer/models/PersistPlanetDomain.java
// public class PersistPlanetDomain {
// 	private Integer hashKey;
// 	private String setup;
// 	private String lastRefreshDate; //no idea what to do with this
// 	private Integer version;
// 	
// 	public Integer calculateHashKey(){
// 		if(setup == null){
// 			return null;
// 		}
// 		hashKey = setup.hashCode();
// 		return getHashKey();
// 	}
// 	public Integer getHashKey() {
// 		return hashKey;
// 	}
// 	public void setHashKey(Integer hashKey) {
// 		this.hashKey = hashKey;
// 	}
// 	public String getSetup() {
// 		return setup;
// 	}
// 	public void setSetup(String setup) {
// 		this.setup = setup;
// 	}
// 	public String getLastRefreshDate() {
// 		return lastRefreshDate;
// 	}
// 	public void setLastRefreshDate(String lastRefreshDate) {
// 		this.lastRefreshDate = lastRefreshDate;
// 	}
// 	public Integer getVersion() {
// 		return version;
// 	}
// 	public void setVersion(Integer version) {
// 		this.version = version;
// 	}
// }


import org.apache.ibatis.session.SqlSession;
import org.servicelayer.factory.MyBatisConnectionFactory;
import org.servicelayer.models.PersistPlanetDomain;
import org.springframework.ui.ModelMap;
package org.planetary.persist;


public class SavePlanetService {
	private static SqlSession session = null;
	
	static{
// Path: ServiceLayer/src/main/java/org/servicelayer/factory/MyBatisConnectionFactory.java
// public class MyBatisConnectionFactory {
// 
// 	private static SqlSessionFactory sessionFactory;
// 	
// 	static{
// 		try{
// 			String resource = "MyBatisConfig.xml";
// 			Reader reader = Resources.getResourceAsReader(resource);
// 			if(sessionFactory == null){
// 				sessionFactory = new SqlSessionFactoryBuilder().build(reader);
// 			}
// 		}catch(Exception e){e.printStackTrace();}
// 	}
// 	
// 	public static SqlSessionFactory getSqlSessionFactory(){
// 		return sessionFactory;
// 	}
// }
// 
// Path: ServiceLayer/src/main/java/org/servicelayer/models/PersistPlanetDomain.java
// public class PersistPlanetDomain {
// 	private Integer hashKey;
// 	private String setup;
// 	private String lastRefreshDate; //no idea what to do with this
// 	private Integer version;
// 	
// 	public Integer calculateHashKey(){
// 		if(setup == null){
// 			return null;
// 		}
// 		hashKey = setup.hashCode();
// 		return getHashKey();
// 	}
// 	public Integer getHashKey() {
// 		return hashKey;
// 	}
// 	public void setHashKey(Integer hashKey) {
// 		this.hashKey = hashKey;
// 	}
// 	public String getSetup() {
// 		return setup;
// 	}
// 	public void setSetup(String setup) {
// 		this.setup = setup;
// 	}
// 	public String getLastRefreshDate() {
// 		return lastRefreshDate;
// 	}
// 	public void setLastRefreshDate(String lastRefreshDate) {
// 		this.lastRefreshDate = lastRefreshDate;
// 	}
// 	public Integer getVersion() {
// 		return version;
// 	}
// 	public void setVersion(Integer version) {
// 		this.version = version;
// 	}
// }


// Path: planetary/src/main/java/org/planetary/persist/SavePlanetService.java
import org.apache.ibatis.session.SqlSession;
import org.servicelayer.factory.MyBatisConnectionFactory;
import org.servicelayer.models.PersistPlanetDomain;
import org.springframework.ui.ModelMap;

package org.planetary.persist;


public class SavePlanetService {
	private static SqlSession session = null;
	
	static{
		session = MyBatisConnectionFactory.getSqlSessionFactory().openSession();