This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
It's not a secret anymore!