Hi, --- "Julia A. Case" <[EMAIL PROTECTED]> wrote: > On Mon, 2002-03-25 at 08:34, Chris Kimpton wrote: > > Did you do this creation through torque? If you have, then you > just > > need to call the Zipcod(e)Peer.doSelect method with a criteria > > specifying the zipcode you wish to find. It will generate the > > correct mapbuilder code for you and call it behind the scenes. > > > > But, this would make it more difficult for other people to reuse > the > code wouldn't it? Not to mention after 10 minutes of searching I > don't > see where the database schema is stored in the system. Would I > need to > use the source build/torque and then recompile the source? If so > this > is not the way to go. >
I think that you haven't quite got what torque is/does or I missed your point. With torque, you specify in an xml file your DB schema (see the build/torque subdirectory in the Jetspeed distribution). You then use ant to get torque to generation sql scripts to build your db and to generate the java code to access that db. This builds code for you to insert, update and query your db. You can extend this code to have any specific business methods you need. http://jakarta.apache.org/turbine/torque/user-guide.html I reccomend using the torque in the jetspeed distribution - thats what I am using. You may have some problems/work to do if you use the version from torque cvs. HTH, Chris ===== http://www.soccer2002.org.uk - join in and win CA$H! __________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards� http://movies.yahoo.com/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
