Re: Obtain generated ID

2009-01-11 Thread LiborP
Thanks to all for the replay. Finally I've found out where was the problem. In tag "" 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

Re: Obtain generated ID

2009-01-10 Thread LiborP
Mario Ds Briggs wrote: > > Is it possible that in your ibatis application, the insert statement and > the 'values IDENTITY' statement are executed on different connections. > Hi Mario, thanks for the reply. I'm using embedded Derby instance, it means that only one connection per database

Obtain generated ID

2009-01-09 Thread LiborP
Hi all, I'm new in iBatis. I'm using Swing, Spring, iBatis and Apache Derby in my desktop project. I'm struggling with receive inserted ID. I'm not able to find out last inserted ID. To generate new ID I'm using Derby function IDENTITY_VAL_LOCAL(). This function works fine for generating ID. This