Okay, I have an old version of Turbine! Now with this part
of code does match it!
Criteria c = new Criteria();
c.add(TurbineUserPeer.VISITOR_ID, visitor_id);
Vector v = TurbineUserPeer.doSelect(c);
DBUser U= (DBUser) v.elementAt(0);
String password = u.getPassword();
See you soon!
J.G
Jon Stevens wrote:
> on 11/27/2000 2:08 PM, "Julien Giovannnoni" <[EMAIL PROTECTED]>
> wrote:
>
> > Criteria c = new Criteria();
> > c.add(TurbineUserPeer.USERID, visitor_id);
> > Vector v = TurbineUserPeer.doSelect(c);
> > TurbineUser u= (TurbineUser) v.elementAt(0);
> > String password = u.getPassword();
>
> that should pretty much do it.
>
> what error are you getting?
>
> you should have more error checking code to make sure that you are getting a
> result back from the Vector...ie if (v.size() > 0)
>
> :-)
>
> -jon
>
> --
> twice of not very much is still a lot more than not very much
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
--
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]