The hack solution that I think a number of people are using
is to copy the definition of turbine_user from the turbine
schema to your project schema.  You end up with an om
class for TurbineUser along with the real one, but you can 
use then reference TurbineUser for foreign keys.

Scott

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 16, 2001 11:36 AM
Subject: yet another USER_ID foreign key message


> Hi,
> 
> I read Jon's HOWTO on extending TurbineUser, but still am having some
> trouble getting this stuff to work in my own projects.
> 
> I don't really want to extend TurbineUser, except to reference the
> USER_ID from my own schema, and use it as a key in some of my own
> tables.
> 
> I read Jon's howto, and also looked at the Scarab source some.  I see where
> Jon is setting up the ScarabUser interface, and defines a getUserId function
> there.  However, the BaseScarabUserImpl class doesn't define it, and I assume
> it's defined in the TurbineUser (or BaseTurbineUser) used in Scarab.
> 
> The TurbineUser stuff in scarab is in a jar called fulcrum.  I haven't been
> able to find the source to this library anywhere.  Can someone point me in
> the right direction?
> 
> Or if someone has a simple example where they've used the TURBINE_USER USER_ID
> as a foreign key in their own schema, and had it work, I'd appreciate that as
> well.
> 
> Once I get this going, I plan to write a HOWTO on doing this with the example
> app, as I know it's come up somewhat often.
> 
> Thanks for any help,
> tp
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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

Reply via email to