Jon Stevens wrote:
> 
> on 12/19/2000 1:35 PM, "Colin Chalmers" <[EMAIL PROTECTED]> wrote:
> > 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();

wrong!

> TurbineUser user = new TurbineUser();
> user.setLoginName("collie");
> user.setPassword("password");
> user.setFirstName("colin");
> TurbineUserPeer.doInsert(user);

a bit better, but still wrong!

TurbineUser user = TurbineSecurity.getAnonymousUser();
user.setLoginName("collie");
user.setFirstName("colin");
TurbineSercurity.addUser(user, "password");

> > 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.

Can't help you with that one. Maybe John Thorhauer will step in and
help.

Rafal

--
Rafal Krzewski
Senior Internet Developer
mailto:[EMAIL PROTECTED]
+48 22 8534830 http://e-point.pl


------------------------------------------------------------
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