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: PK problem with Postgre

2006-04-22 Thread Andrus Adamchik
Jeff, I am not sure if there was a race condition before, but since ~ M12- B1 PK generator operates under slightly different conditions, being tied to the commit transaction in progress. So have you seen this problem recently? Andrus On Apr 22, 2006, at 9:32 AM, Jeff de Vries wrote: I

Re: PK problem with Postgre

2006-04-22 Thread WONDER
Hi Andrus, The explination from Jeff matches my observations. So answering your question is Yes. I saw that problem with 1.2B2 also. Sako - Original Message - From: Andrus Adamchik [EMAIL PROTECTED] To: cayenne-user@incubator.apache.org Sent: Saturday, April 22, 2006 9:23 AM Subject:

does Cayenne creates objects by hisself?

2006-04-22 Thread WONDER
Hi, I have the folloging situation. Entity User has relation toMany Visitor its name is visitors. Usually if I Fetch the object Visitor from DB and then call visitor.user() Cayenne fetches the object User from the DB automatically. Now, creating a Visitor object. Visitor visitor = new

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: PK problem with Postgre

2006-04-22 Thread Andrus Adamchik
I opened a Jira issue - will need to investigate. Any more clues, like does it happen under heavy load, or is it preceded by unrelated application errors that caused a transaction rollback? http://issues.apache.org/cayenne/browse/CAY-526 Andrus On Apr 22, 2006, at 1:37 PM, WONDER wrote:

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

Re: does Cayenne creates objects by hisself?

2006-04-22 Thread Mike Kienenberger
setUser() or addToVisitorList() are standard cgen-created wrapper methods which call setToOneTarget() or addToManyTarget(). They provide you with type-checking. Also, in theory, if you ever had to migrate away from Cayenne (undoubtably due to some political decision rather than a technical