|
From: Isabelle M. <isa...@me...> - 2003-05-25 16:28:56
|
Hi everyone, I've rewritten mySQL key generation (MySQLMaxValueIncrementer.java). KeyBinder is no longer used. For a sample of how to use key generation, have a look at livetest/JdbcInsertTestSuite.java. Your main table (the one for which you want key generation) should not auto_increment its key. The sequence table, on the other hand, should be auto_increment. Have a look at createTables in JdbcInsertTestSuite or at the javadoc for MySQLMaxValueIncrementer.java. Please let me know if there still are problems. One of the tests is for behavior when multithreading, and on my system it succeeds. Isabelle -- Isabelle Muszynski Software Engineer Zandweellaan 4 2660 Antwerpen Belgium Tel. 32-(0)3-830 18 54 Mobile: 32-(0)485 49 50 89 Email: isa...@me... Website: www.meta-logix.com |