Package

Source Code of BuildingTest

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());


    }
}
TOP

Related Classes of BuildingTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.