Hi,

I'm wading through the adidocs inserting and deleting entires in the
database, slowly but surely.

I've been looking at the apidocs and comparing methods to the *old*
usermanager interface. I've copied some of the code and got things working
however I'm curious as to whether I'm following the correct path.

Here's what I mean.

1. For inserting a new user I used this code.

        Criteria newdata = new Criteria();
        newdata.add(TurbineUserPeer.getColumnName("LOGIN_NAME"), "collie");
        newdata.add(TurbineUserPeer.getColumnName("PASSWORD_VALUE"),
"password");
       newdata.add(TurbineUserPeer.getColumnName("FIRST_NAME"), "colin");

       int visitor_id = -1;

      visitor_id =
((BigDecimal)TurbineUserPeer.doInsert(newdata)).intValue();

which does work!!! But do I always have to use the ColumnName? Or is there a
simplier way?

2. After my success at that end I thought it would be the same for adding a
JobEntry, but the JobEntryPeer doesn't have the getColumnName method.

So I'm confused, I would like to keep the code consistent if at all
possible.

Any help (as always) much appreciated

/colin




------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to