This is line do it!
int idUser =
((BigDecimal)((TurbineUser)data.getUser()).getPrimaryKey().getValue()).intVa
lue();

PD.
Remember imprt the classes necesary

-----Original Message-----
From: Jim Knoll [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 6:38 PM
To: [EMAIL PROTECTED]
Subject: How to get UserId?


Hello,

I would like to get the UserId and use it my own table as foreign key. I
know I can get a user object from RunData.getUser(), and I could access
UserId with TurbineUserPeer.  How do I get from the User to the User's
table entry?  Do I have to do a query on first_name, last_name?  What if
multiple users have the same name?

I would appreciate any help.

Thanks,

Jim

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to