"http://www.ibatis.com/dtd/sql-map.dtd"> SELECT PER_ID as id, PER_FIRST_NAME as firstName, PER_LAST_NAME as lastName, PER_BIRTH_DATE as birthDate, PER_WEIGHT_KG as weightInKilograms, PER_HEIGHT_M as heightInMeters FROM PERSON WHERE PER_ID = #value# ]]>
public static SqlMap getSqlMapInstance(){ return sqlMap; }
public static void main(String[] args){ SqlMap sqlMap = MyAppSqlConfig.getSqlMapInstance(); Integer id = new Integer(2); try{ // Select Person person = (Person)sqlMap.executeQueryForObject("getPerson", id); System.out.println("....person=" + person);