Rahul Mondal
unread,Apr 18, 2012, 12:21:58 AM4/18/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mybati...@googlegroups.com
Hello friends,
can we use ?
public static final String CREATE_USER_SESSION = "INSERT INTO int_session(user_id,ip_addr,start_tm) values(#{username},#{ip},now())";
@Insert(CREATE_USER_SESSION)
@Options(keyColumn="id",keyProperty="sessionNo",useGeneratedKeys=true)
public int createUserSession(@Param("sessionNo") String sessionNo,@Param("username") String userCode,@Param("ip") String ip);
because it does not put generated value in param "sessionNo".
Please Help!!
--
Thank You
Rahul Mondal