Re: MySql AUTO_PK_SUPPORT

2006-06-20 Thread Borut Bolčina
Hello again, only now have I returned to this issue. Like two months ago I wrote some code (MyJdbcPkGenerator) but never had time to actually use it =-O Now I have invested some hours into it, lurking over cayenne source code trying to find a way to solve my problem. As suggested I have

Re: MySql AUTO_PK_SUPPORT

2006-04-24 Thread Andrus Adamchik
Borut, I don't have time to do serious review, but looks ok from the first glance. How do I use this class, once we agree on the correct behaviour? Just set it on adapter. E.g.: import org.objectstyle.cayenne.property.PropertyUtils; DbAdapter adapter = .. // since DbAdapter doesn't

Re: MySql AUTO_PK_SUPPORT

2006-04-22 Thread Andrus Adamchik
On Apr 21, 2006, at 12:33 PM, Borut Bolčina wrote: INFO QueryLogger: DELETE FROM AUTO_PK_SUPPORT WHERE TABLE_NAME IN ('source') INFO QueryLogger: INSERT INTO AUTO_PK_SUPPORT (TABLE_NAME, NEXT_ID) VALUES ('source', 200) An implementation of a smarter auto PK configuration mechanism has

Re: MySql AUTO_PK_SUPPORT

2006-04-22 Thread Andrus Adamchik
On Apr 22, 2006, at 11:12 AM, Andrus Adamchik wrote: 4. This line runUpdate(node, pkDeleteString(dbEntities)) should only use a subset obtained in (3) Of course this last point is wrong, but you should get the general idea :-) Andrus On Apr 22, 2006, at 11:12 AM, Andrus Adamchik

Re: MySql AUTO_PK_SUPPORT

2006-04-22 Thread Mike Kienenberger
On 4/22/06, Andrus Adamchik [EMAIL PROTECTED] wrote: An implementation of a smarter auto PK configuration mechanism has been pending for some time, but I think this particular issue can be addresses separately. You can try it on a custom PK generator and I appreciate if you log this issue in

Re: MySql AUTO_PK_SUPPORT

2006-04-22 Thread Andrus Adamchik
On Apr 22, 2006, at 3:50 PM, Mike Kienenberger wrote: On 4/22/06, Andrus Adamchik [EMAIL PROTECTED] wrote: An implementation of a smarter auto PK configuration mechanism has been pending for some time, but I think this particular issue can be addresses separately. You can try it on a custom