aspose file tools*
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

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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