Leon,
Thanks for the info. I'll try your hints presently.
>From your description, it sounds as if the classes in
src/java/org/apache/turbine/om/user/*Peer.java (and
maybe others) are generated automatically. If this is
right, perhaps the files should include a comment such as
/*
* This file was generated automatically by <TOOL>.
* You should NOT modify it manually! Don't be a jackass!
*/
Or something to that effect...
Thanks,
> From: Leon Messerschmidt [mailto:[EMAIL PROTECTED]]
>
> Try using *OMGenerator to create Peer / MapBuilder /
> Data-Object classes for you.
> You will end up with classes like Book, BookPeer,
> BookMapBuilder, etc....
> BookMapBuilder just adds information about he Book table to a
> databasemap. It is
> rarely called directly and it should work seamlessly in the
> background. BookPeer
> is a class full of static methods you use to do
> inserts/updates/delete from your
> actual table. Book is a Data-Object class that gives you a JavaBean
> representation of a table row.
>
> You would typically use it like this:
>
> Criteria crit = new Criteria;
> crit.add (BookPeer.BOOK_ID, 2, " > ");
> Vector v = BookPeer.doSelect (crit);
>
> Now v will contain a list of Book objects each representing a
> row in the BOOK
> table where the BOOK_ID is larger that 2.
--
Gonzalo A. Diethelm
[EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]