import net.caece.fmII.hibernate.Building;
import net.caece.fmII.myBatis.IBatisFactory;
import org.apache.ibatis.session.SqlSession;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author jeffliu
*/
public class BuildingTest {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
SqlSession sess = IBatisFactory.getInstance().getSqlSession();
Building b = (Building)sess.selectOne("Building.getByBuildingId", new Long("232"));
sess = null;
System.out.println("------>>"+b.getBuildingName());
}
}