Return-Path: Mailing-List: contact turbine-torque-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list turbine-torque-user@jakarta.apache.org Received: (qmail 28217 invoked by uid 98); 15 Jan 2003 21:58:44 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Received: (qmail 28164 invoked from network); 15 Jan 2003 21:58:42 -0000 Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142) by nagoya.betaversion.org with SMTP; 15 Jan 2003 21:58:42 -0000 Received: (qmail 94346 invoked by uid 500); 15 Jan 2003 21:57:16 -0000 Received: (qmail 94339 invoked from network); 15 Jan 2003 21:57:16 -0000 Received: from eos.telenet-ops.be (195.130.132.40) by daedalus.apache.org with SMTP; 15 Jan 2003 21:57:16 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by eos.telenet-ops.be (Postfix) with SMTP id 4ADCC20D85 for ; Wed, 15 Jan 2003 22:57:21 +0100 (CET) Received: from voodoo (D5E00694.kabel.telenet.be [213.224.6.148]) by eos.telenet-ops.be (Postfix) with SMTP id 19DE520DD8 for ; Wed, 15 Jan 2003 22:57:21 +0100 (CET) Message-ID: <000601c282ba$cef9cac0$9406e0d5@voodoo> From: "Rami Hansenne" To: "Turbine Torque Users List" References: <003001c282b2$15778860$9406e0d5@voodoo> <01ea01c2bcdd$2f784280$0f03a8c0@complexity> Subject: Re: Torque beans & OJB Date: Sat, 2 Nov 2002 22:57:16 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I'm using Jakarta Soap (and we'll probably migrate to Jakarta Axis later on). Though I haven't got any experience with Velocity templates, I'll definitely check it out. If I could force the generated classes to implement such an interface it might indeed work. The templates would have to be redone whenever a new version of Torque comes out I guess, but it'd still be easier than manual mapping. Thanks, Rami. ----- Original Message ----- From: "Bill Schneider" To: "Turbine Torque Users List" Sent: Wednesday, January 15, 2003 10:29 PM Subject: Re: Torque beans & OJB > This is an excellent question and probably depends to a large extent on what > kind of SOAP toolkit you're using. Perhaps you could rig the Velocity > templates that spit out Java objects, such that they create an interface for > each data object with just the get/set methods, and the actual Torque > objects implement these get/set methods. Any copy-from-object methods in > the Torque objects would have to accept the interface rather than the Torque > type. > > Then you would define your SOAP service as accepting or returning objects > that implement that interface with only get/set methods. > > -- Bill > > > I'll need to transfer the data beans through soap serialization from the > > back-end to some front-end sites. The Torque generated classes however are > > not pure data beans. They have a save method and other functionality in > the > > super classes. They also import certain torque classes. This would mean > all > > the front-end clients would need to have the torque jar installed. It > would > > also make serialization/mapping a lot harder. Is there a way to easily map > > these classes to pure data beans (with nothing but getters/setter for > their > > properties), without manually creating and mapping these (which would > sorta > > nullify the benefit of having your classes generated)? > > > > Secondly, what exactly is the difference between Jakarta Torque and > Jakarta > > OJB? What are the pro's and con's of each and when is one recommended over > > the other? > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.437 / Virus Database: 245 - Release Date: 6/01/2003