[prev in list] [next in list] [prev in thread] [next in thread] 

List:       turbine-dev
Subject:    Re: cvs
From:       John McNally <jmcnally () collab ! net>
Date:       2002-03-01 19:15:31
[Download RAW message or body]

Torque does not generate methods which use interfaces.  TurbineUserPeer
expects a TurbineUser object.

Jon Scott Stevens wrote:
> 
> on 3/1/02 10:35 AM, "jmcnally@apache.org" <jmcnally@apache.org> wrote:
> 
> >  public class DBUserManager implements UserManager
> >  {
> > @@ -270,7 +271,7 @@
> >              throw new UnknownEntityException("The account '" +
> >                  user.getUserName() + "' does not exist");
> >          }
> > -        Criteria criteria = TurbineUserPeer.buildCriteria(user);
> > +        Criteria criteria = TurbineUserPeer.buildCriteria((TurbineUser)user);
> >          try
> >          {
> >              TurbineUserPeer.doUpdate(criteria);
> > @@ -402,7 +403,7 @@
> >          }
> >          String encrypted = TurbineSecurity.encryptPassword(initialPassword);
> >          user.setPassword(encrypted);
> > -        Criteria criteria = TurbineUserPeer.buildCriteria(user);
> > +        Criteria criteria = TurbineUserPeer.buildCriteria((TurbineUser)user);
> >          try
> >          {
> >              // we can safely assume that BaseObject derivate is used as User
> 
> John, why are you casting to the TurbineUser and not the User object?
> 
> -jon
> 
> --
> To unsubscribe, e-mail:   <mailto:turbine-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:turbine-dev-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:turbine-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-dev-help@jakarta.apache.org>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic