|
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 |
|
From: Ken K. <kk...@kk...> - 2003-05-27 17:11:53
|
Resending this message. I sent it last night and don't know why it hasn't shown up on the mailing list. Isabelle, I have used your new mysql key generation in petclinic and it works fine. By the way, I like this new interface much better than the old one using the KeyBinder and JdbcTemplate.InsertRetval. It is much cleaner and easier to use. Ken Isabelle Muszynski wrote: > 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 > > > |
|
From: JP P. <jp....@ti...> - 2003-05-25 19:19:55
|
Hi Isabelle, It is effectively the way I suggested. You made also a great job about multithreading. But I have still the same issue. How setting, in practice, for run the live tests. I didn't look for now at the batch you sent to Rod. Is it currently up to date or is a newer way? Regards, Jean-Pierre > -----Message d'origine----- > De=A0: spr...@li... > [mailto:spr...@li...] De la part > de Isabelle Muszynski > Envoy=E9=A0: dimanche 25 mai 2003 18:29 > =C0=A0: spr...@li... > Objet=A0: [Springframework-developer] mysql key generation >=20 > Hi everyone, >=20 > 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. >=20 > 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. >=20 > Please let me know if there still are problems. One of the tests is for > behavior when multithreading, and on my system it succeeds. >=20 > Isabelle >=20 > -- > 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 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: ObjectStore. > If flattening out C++ or Java code to make your application fit in a > relational database is painful, don't do it! Check out ObjectStore. > Now part of Progress Software. http://www.objectstore.net/sourceforge > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |
|
From: Isabelle M. <isa...@me...> - 2003-05-26 08:31:58
|
Hi Jean-Pierre, the shell script I sent is up-to-date, except for the typo Rod discoverd in the aopalliance (I had aopcalliance or some such) Isabelle On Sun, May 25, 2003 at 09:19:44PM +0200, JP Pawlak wrote: > Hi Isabelle, > > It is effectively the way I suggested. You made also a great job about > multithreading. > But I have still the same issue. How setting, in practice, for run the > live tests. I didn't look for now at the batch you sent to Rod. Is it > currently up to date or is a newer way? > > Regards, > Jean-Pierre > > > > -----Message d'origine----- > > De : spr...@li... > > [mailto:spr...@li...] De la > part > > de Isabelle Muszynski > > Envoyé : dimanche 25 mai 2003 18:29 > > à: spr...@li... > > Objet : [Springframework-developer] mysql key generation > > > > 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 > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: ObjectStore. > > If flattening out C++ or Java code to make your application fit in a > > relational database is painful, don't do it! Check out ObjectStore. > > Now part of Progress Software. http://www.objectstore.net/sourceforge > > _______________________________________________ > > Springframework-developer mailing list > > Spr...@li... > > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > -- 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 |