This is a standard flow in any DAL - insert a new record, and get the new
auto-generated / auto-incremented ID.
I haven't found how to do this with mybatis.
I found this question on how to do it on Postgres, but it doesn't work for me
on mysql.
http://stackoverflow.com/questions/4260428/mybatis-how-to-return-the-id-of-the-i
nserted-object-under-postgres
I'm cross-posting this to Stack Overflow
http://stackoverflow.com/questions/4283159/howto-return-ids-on-inserts-with-myba
tis-in-mysql-with-annotations
Original issue reported on code.google.com by ron.gr...@gmail.com on 26 Nov 2010 at 7:21
Original issue reported on code.google.com by
ron.gr...@gmail.com
on 26 Nov 2010 at 7:21