Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 26063 invoked from network); 4 Apr 2007 15:43:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Apr 2007 15:43:22 -0000 Received: (qmail 64776 invoked by uid 500); 4 Apr 2007 15:43:27 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 64703 invoked by uid 500); 4 Apr 2007 15:43:27 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 64683 invoked by uid 99); 4 Apr 2007 15:43:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2007 08:43:26 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: 210.210.145.64 is neither permitted nor denied by domain of ohsuria@gmail.com) Received: from [210.210.145.64] (HELO ip4.cbn.net.id) (210.210.145.64) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2007 08:43:18 -0700 Received: from b6-cbn-personal-123-144.kabelvision.com (HELO [192.168.0.2]) ([202.73.123.144]) by ip4-smtp.int.cbn.net.id with ESMTP; 04 Apr 2007 22:42:54 +0700 X-SBRS-Score: None X-HAT: Sender Group SMTP_Cable, Policy $IP4_Outbound_Cable applied. X-IronPort-AV: i="4.14,372,1170608400"; d="scan'208"; a="106600985:sNHT14117913" From: "ohsuria@gmail.com" To: user-java@ibatis.apache.org Subject: Tutorial questions Date: Wed, 4 Apr 2007 22:47:43 +0700 User-Agent: KMail/1.9.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704042247.43990.ohsuria@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I am trying to develop a web using jsp and ibatis. I am new for this environment so this would be a tutorial question ;). I use jsp and AbatorForEclipse1.0 for the code generation. it creates crud classes. but I cannot find the class for queries all records from the table. May I use SelectByExample()? when I try this code: myTableExample objExample = new myTableExample(); list = myTableDAO.selectByExample(objExample); out.println("Selected " + list.size() + " records.

"); for (int i=0; i < list.size(); i++) { out.println(list.get(i) + "
"); } it returns: mysql.model.myTable@9abce9 mysql.model.myTable@e8a0cd mysql.model.myTable@95215b mysql.model.myTable@c10de0 How to return the field's value from the table I select? Thanks in advance. OHSuria