File: Account.xml select ACC_ID as id, ACC_FIRST_NAME as firstName, ACC_LAST_NAME as lastName, ACC_EMAIL as emailAddress from ACCOUNT where ACC_EMAIL = #emailAddress# and ACC_LAST_NAME = #lastName# insert into ACCOUNT ( ACC_ID, ACC
这是一个用iBator生成iBatis有关代码的例子。 特别说明: Eclipse应该是3.4.1以上版本, 并且安装了iBator插件。否则可用iBator的命令行版本或ant工具。 测试用数据是: CREATE TABLE PERSON( id INTEGER NOT NULL, firstName VARCHAR (40) NOT NULL, lastName VARCHAR (40) NOT NULL, PRIMARY KEY (ID) ); insert into PERSON v
如果是实体中是直接引用别的对象的具体参数字段,直接用原始方式就行
SELECT
eer.visit_number as visitNumber,
eer.patient_name as patientName,
eer.send_time as sendTime,
eek.id as id,
eek.ward_code as wardCode,