title: How to return IDs on insert in mybatis and oracle with annotation
body: <p>I am trying the following in Java</p>
  
  <pre><code>@Insert("INSERT INTO USERS (ID,NAME,AGE) VALUES(USER_SEQ.NEXTVAL,#{name},#{age})")
  @Options(useGeneratedKeys=true, keyProperty="ID", keyColumn="ID")
  public int insertUsers(User userBean);
  </code></pre>
  
  <p>It should return the new genarated ID, but its returning "1" always even though its making insertion into table in a proper way.</p>
  
  <p>Can any one have tryied this "Getting IDs in return or insertion in MyBatis(annotation) with oracle"</p>