how to auto insert on update

2008-09-11 Thread Doug Flex
Hi, Is it possible to configure Abator to generate code for “update” method to auto insert? The code will first try to update the record, if the record doesn't exist in the database, it will perform an insert? Thanks Doug

Re: Abator Example from 2 tables

2008-08-07 Thread Doug Flex
Create a View in the database that join multiple tables and let Abator generate code on that view just like you do with Table. This would generate ViewExample class. Doug - Original Message From: Jeff Butler <[EMAIL PROTECTED]> To: user-java@ibatis.apache.org Sent: Thursday, August 7

Re: Can Insert mapped statement be reuse?

2008-08-07 Thread Doug Flex
hen (a)ibator will generate the for you. This is the best solution, I think. Jeff Butler On Thu, Aug 7, 2008 at 2:45 PM, Doug Flex <[EMAIL PROTECTED]> wrote: Hi, I want to get the primary key (which is auto increment) return to my object after the insert statement. I don't w

Can Insert mapped statement be reuse?

2008-08-07 Thread Doug Flex
Hi, I want to get the primary key (which is auto increment) return to my object after the insert statement. I don't want to modify the generated insert statement from Sqlmap because I want to continue to take advantage of the generated code for future changes in the database. Is there a way t

Re: Problem using SelectByExample with TypeHandlerCallback

2008-08-05 Thread Doug Flex
page: http://ibatis.apache.org/ http://ibatis.apache.org/javadownloads.cgi Cheers, Clinton On Sun, Aug 3, 2008 at 9:22 AM, Doug Flex <[EMAIL PROTECTED]> wrote: Hi Jeff, Thanks for your proposed solution. It looks very promising and it should work, but it doesn't. I got the same er

Re: Problem using SelectByExample with TypeHandlerCallback

2008-08-03 Thread Doug Flex
utler On Thu, Jul 31, 2008 at 11:10 AM, Doug Flex <[EMAIL PROTECTED]> wrote: Hi, I have a problem with Null Pointer Exception when trying to use SelectByExample with enum criteria. I have done the following to seek for answer but have no success yet.  Please help! - google - looke

Problem using SelectByExample with TypeHandlerCallback

2008-07-31 Thread Doug Flex
Hi, I have a problem with Null Pointer Exception when trying to use SelectByExample with enum criteria. I have done the following to seek for answer but have no success yet. Please help! - google - looked through iBatis FAQ - looked through iBatis WIKI - looked thought iBatis mailing archive