<!-- List the SQL Map XML files. They can be loaded from the classpath, as they are here (com.domain.data...) --> <sqlMap resource="com/conf/User.xml"/> <sqlMap resource="com/conf/PlayType.xml"/> <sqlMap resource="com/conf/lampMessage.xml"/> <sqlMap resource="com/conf/animalNumber.xml"/> <sqlMap resource="com/conf/waring.xml"/>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<sqlMap namespace="PlayType">
<!-- Use type aliases to avoid typing the full classname every time. --> <typeAlias alias="PlayType" type="com.boss.ton.dao.domain.PlayType"/> <typeAlias alias="PlayTypeForm" type="com.boss.ton.app.playtype.PlayTypeForm"/> <!-- ** code property */ private String code;
/** * Returns the code. * @return String */ public String getCode() { return code; }
/** * Set the code. * @param code The code to set */ public void setCode(String code) { this.code = code; }
/** * Returns the maxCompensatePrortion. * @return Float */ public Float getMaxCompensatePrortion() { return maxCompensatePrortion; }
/** * Set the maxCompensatePrortion. * @param maxCompensatePrortion The maxCompensatePrortion to set */ public void setMaxCompensatePrortion(Float maxCompensatePrortion) { this.maxCompensatePrortion = maxCompensatePrortion; }
/** * Returns the minTimeInterval. * @return Float */ public Float getMinTimeInterval() { return minTimeInterval; }
/** * Set the minTimeInterval. * @param minTimeInterval The minTimeInterval to set */ public void setMinTimeInterval(Float minTimeInterval) { this.minTimeInterval = minTimeInterval; }
/** * Returns the boardType. * @return String */ public String getBoardType() { return boardType; }
/** * Set the boardType. * @param boardType The boardType to set */ public void setBoardType(String boardType) { this.boardType = boardType; }
/** * Returns the name. * @return String */ public String getName() { return name; }
/** * Set the name. * @param name The name to set */ public void setName(String name) { this.name = name; }
/** * Returns the maxMoneyAmount. * @return Long */ public Long getMaxMoneyAmount() { return maxMoneyAmount; }
/** * Set the maxMoneyAmount. * @param maxMoneyAmount The maxMoneyAmount to set */ public void setMaxMoneyAmount(Long maxMoneyAmount) { this.maxMoneyAmount = maxMoneyAmount; }
public Long getMinNumber() { return minNumber; }
public void setMinNumber(Long minNumber) { this.minNumber = minNumber; } }
public interface PlayTypeIface extends BaseIface{ public List initPlayType() throws SQLException; public int updatePlayType(PlayType playType) throws SQLException; }
每个表都要能生成这些文件,最后还有 <!-- List the SQL Map XML files. They can be loaded from the classpath, as they are here (com.domain.data...) --> <sqlMap resource="com/conf/User.xml"/> <sqlMap resource="com/conf/PlayType.xml"/> <sqlMap resource="com/conf/lampMessage.xml"/> <sqlMap resource="com/conf/animalNumber.xml"/> <sqlMap resource="com/conf/waring.xml"/>