File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes MyBatis: how to get the id Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "MyBatis: how to get the id" Watch "MyBatis: how to get the id" New topic

MyBatis: how to get the id

debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

hi all,

my "UserDao" is like:

any my "UserServiceImpl" is like:

the number is always 1, all I need the ID of my table "user" where the new record is insert.
any suggestion would be great.

I agree. Here's the link:
subject: MyBatis: how to get the id
jQuery in Action, 3rd edition