RE: How to update multiple rows

2003-11-10 Thread Amit Rana
Peer classes have doUpdate methods check the javadocs for more details. One of the methods takes two Criteria objects as input, one is used for where and another for setting values. HTH. Amit. > -Original Message- > From: Ramesh Sabeti [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November

How to update multiple rows

2003-11-10 Thread Ramesh Sabeti
I have a very simple question: How do you do something like this with Torque? Update book set book_price = 0 where book_id < 100 Wish there were more online resources. Thanks, Ramesh. - To unsubscribe, e-mail: [EMA

RE: How to migrate to a new db structure.

2003-11-10 Thread Ramesh Sabeti
> so: 1. Why can't I just copy the database and the web-app to my server? > Why > can i read and change, but not add new entries with the Torque om models? What is the database MySql? Can you insert records in the local database and not in the remote one? > 2. how would i add some more features

RE: How to migrate to a new db structure.

2003-11-10 Thread Sven Haiges
Kind of. but you are right, these are two. so: 1. Why can't I just copy the database and the web-app to my server? Why can i read and change, but not add new entries with the Torque om models? 2. how would i add some more features to my objects, and migrate all the data to the new tables in an

RE: How to migrate to a new db structure.

2003-11-10 Thread Ramesh Sabeti
I see two different questions, (1) you're planning to modify db structure, and (2) your app works locally but not on the remote server. Are these questions related? > -Original Message- > From: Sven Haiges [mailto:[EMAIL PROTECTED] > Sent: Monday, November 10, 2003 12:55 PM > To: [EMAIL PR

Re: Skip a field when generate object models?

2003-11-10 Thread Dale Thoms
I don't know of any setting that will do what you want, but as a workaround, you could edit the ???-schema.xml and remove the element for that column. Then the java code Torque generates will be unaware of the column's existence in the db. Dale On Sun, 9 Nov 2003 10:47:32 -0800, "Jiaqi G

How to migrate to a new db structure.

2003-11-10 Thread Sven Haiges
Hi there. I have Torque 1.1 running and everything works great now. Dev got a lot easier. My only trouble is: what happens if I have to change the structure, because my client wants some additional data to be saved in the DB? Once, I tried to copy my local version of both the WebApp (class fil

problems with log4j and maven

2003-11-10 Thread Pawel Gruszczynski
I use maven goal 'torque' for generation of torque files. I have problems with initializing log4j. Here is the output I'm geting: torque:sql-generate: [torque-sql] Using classpath [torque-sql] Generating to file C:\grucha\projects\nabor\src\sql\report.si.sql.generation log4j:WARN No appen

RE: retrieveByPK ?

2003-11-10 Thread Amine Bousta
Hello, "retrieveByPk" is a method generated by build-torque.xml like are getters and setters of your Torque objects. So it's not defined in the API docs but should be defined by your own javadoc. Regards Amine -Message d'origine- De : Giulio Vezzelli [mailto:[EMAIL PROTECTED] Envoye : lu

retrieveByPK ?

2003-11-10 Thread Giulio Vezzelli
Greetings, I was wondering why the retrieveByPK method doesn't seem to be in the "apidocs" Torque documentation... or is it just that I can't find it ?! Thanks! Giulio Vezzelli Infolog S.r.l. Via Alfieri, 28 Modena - 41100 Telefono : +39-059-822446 Sito web : http://www.infolog.it

Turn off Log4j

2003-11-10 Thread Javier.Olcina
Hi all, I am trying to turn off the log4j in torque because I am comparing execution times of Torque and simple JDBC calls. The times of Torque are bigger but I need to turn off the log4j to get a more real conclusion. I have tried to turn off Log4j in differents ways but I did not succed