Hi Aldo,
you must add doSelectAll methods in BookPeer, AuthorPeer, and
PublisherPeer classes. Read this tutorial:
http://db.apache.org/torque/tutorial/step4.html
Paragraph "Adding Functionality to the Object Model"
Otherwise you can modify Booksotre class, use doSelect(new Criteria())
instead of doSelectAll().
So this line:
List booklist = BookPeer.doSelectAll();
Will be:
List booklist = BookPeer.doSelect(new Criteria());
Regards,
Luca
_______
Luca Zappa
[EMAIL PROTECTED]
www.lucazappa.com
-----Original Message-----
From: Aldo Luis Aguirre [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 22, 2004 5:12 PM
To: Torque MailList
Subject: problems with doSelectAll(); in the tutorial
Hi,
I'm ussing torque 3.1 and torque gen 3.1, I copied the tutorial, but,
when I try to compile it gives me the follow error:
ant -f build-torque.xml compile
Buildfile: build-torque.xml
compile:
[javac] Compiling 1 source file to
/home/aguirrel/bajado/java/jakarta/torque-gen-3.1/bin/classes
[javac]
/home/aguirrel/bajado/java/jakarta/torque-gen-3.1/src/java/com/kazmier/Books
tore.java:70:
cannot find symbol
[javac] symbol : method doSelectAll()
[javac] location: class com.kazmier.om.BookPeer
[javac] List booklist = BookPeer.doSelectAll();
[javac] ^
[javac]
/home/aguirrel/bajado/java/jakarta/torque-gen-3.1/src/java/com/kazmier/Books
tore.java:121:
cannot find symbol
[javac] symbol : method doSelectAll()
[javac] location: class com.kazmier.om.BookPeer
[javac] booklist = BookPeer.doSelectAll();
[javac] ^
[javac] 2 errors
BUILD FAILED
/home/aguirrel/bajado/java/jakarta/torque-gen-3.1/build-torque.xml:662:
Compile failed; see the compiler error output for details.
Total time: 7 seconds
If I put out this sentences, it works, it write in the db and print
everything. If somebody can help me, really thanks
Luis
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]