hai stultuske
when we print the sql statement at console before executing
i thought it prints like as follows (what he has given in his first)
output might be:
INSERT INTO GoodCustomer(Product ID, Type, Watt, Volts) VALUES(+obj.getProductId()+,'type_value_here','ge####t_value_here','volts_value_here')
but +obj.getProductId()+ remains the same
thats the reason i left that value as a expression evaluated value as JamesCherrill said
please have a clean look once in changed sql statement in my post
i haven't placed any single quotes which declares obj.getProductId() as a string literal in my post
thats it
my apologies to all of you if i mislead the response
any comments are appreciated