aspose file tools*
The moose likes Other Application Frameworks and the fly likes ( IBatis ) After inserting values into database ibatis is returning null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "( IBatis ) After inserting values into database ibatis is returning null" Watch "( IBatis ) After inserting values into database ibatis is returning null" New topic
Author

( IBatis ) After inserting values into database ibatis is returning null

Praveen Sangolli
Greenhorn

Joined: May 22, 2008
Posts: 28
I have this code in my Enquiry.xml file

can anyone help me on how to get a value or a confirmation after successfully inserting data into DataBase...
Dhananjay Patkar
Greenhorn

Joined: Aug 12, 2008
Posts: 8
Hey,
Use <selectKey> ibatis tag ,Then you will achieve what you are expecting.
Its child tag of <insert>.

Cheers,
Dhananjay
Abhie Singh
Greenhorn

Joined: Jan 07, 2012
Posts: 2
i have a question
i am using ibatis insert with JTA trasaction.
My insert is not getting committed though i am using startTransaction commitTrasaction and endTrasaction(in finally block)

Also got to know that ibatis insert returns null.
If ibatis insert returns some value, will it commit the trasaction?

I have been using same code on stand alone java program using JDBC type driver and it is commiting.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ( IBatis ) After inserting values into database ibatis is returning null
 
Similar Threads
Problem in inserting data into access database through jsp file
Problem in inserting data into access database through jsp file
Persisting one-to-many object using sql-insert
problem with my insert data page
Issue with inserting a BLOB using IBatis DAO