Thanks to all for the replay. Finally I've found out where was the problem. In tag "<selectKey>" I had attribute type="pre". When I deleted this attribute it starts work. New Id is even set directly into Dictionary class. Many thanks to all!
Jeff Butler-2 wrote: > > I think the issue might be that there is no identity being generated > because you are supplying a value (DEFAULT) for the id field. You > don't need to reference identity columns at all on inserts. Rewrite > your insert like this and give it a try: > > insert into Dictionary (word, value, description, idLesson) > values (#key#, #translation#, #description# ,#idLesson# ) > > Jeff Butler > -- View this message in context: http://www.nabble.com/Obtain-generated-ID-tp21372327p21397443.html Sent from the iBATIS - User - Java mailing list archive at Nabble.com.