The return value from the insert method is the number of rows inserted
(in iBATIS3).
Ibator will generated the proper code for generated keys - see the
configuration element in the documentation.
Jeff Butler
2009/11/14 Tomáš Procházka :
>
> What contain return int value for this mapper method:
hi!
i have this code to insert a usercase:
insert into usercase(gender,age)
values(#{gender},#{age});
how can i retrieve the id?
i wrote this code:
public Integer saveUserCase(UserCase theCase){
int userCaseId =0;
SqlSess
What contain return int value for this mapper method:
int insert(Group record);
with this mapping delcaration:
insert into `group` (id, name, type,
locked, lockedby_user)
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
#{type,jdbcType=CHAR},
#{locked,jdbcType=