In the previous mail subject was not appropriate, I resend with more appropriate subject. Sorry for any inconvenience. Hi, When I try to insert a row in a table with autoincrement id I get the following exception: org.apache.torque.TorqueException: IdGenerator for table 'HOSPITAL' is null It was working before in mysql but when I moved to postgresql it is not working anymore. I have following definition in schema for table hospital: and in postgresql there are two sequences cretared by ant task: hospital_id_seq, and hospital_seq Thanks for your helps. Hassan Abolhassani ___ Razorfish Japan, Inc. $B%"%\%k%O%C%5%K!!%O%C%5%s(B Hassan Abolhassani [Technology network] $B3t<02q