You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Jeremy Cowgar <jc...@cowgar.com> on 2003/05/13 22:12:14 UTC
User ID?
How can I get the current user's ID (INTEGER) ? It seems easy to get the
username and other user information but I'm having troubles tracking
down the userid that I can store for relational data.
Jeremy
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: User ID?
Posted by Jeremy Cowgar <jc...@cowgar.com>.
Jeremy Cowgar wrote:
> How can I get the current user's ID (INTEGER) ? It seems easy to get
> the username and other user information but I'm having troubles
> tracking down the userid that I can store for relational data.
I've been searching and searching, but I have found the answer right
after I post the question. Sorry.. For those who may want to know:
TurbineUser user = (TurbineUser) data.getUser();
user.getPrimaryKeyAsInt()
... at least I hope that's it :-) ...
Jeremy
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org