Yes, I have done this in Scarab, scarab.tigris.org, by using the alias,
baseClass, and basePeer attributes on a <table> entry.  So classes are
created that extend the ones in Turbine.  You must make sure to
implement any methods expected by torque.

This has gotten easier now that Turbine's security classes are generated
by torque, but if I recall there was only one method that needed
implemented for the TurbineUser extension.  I do not know about Group.

john mcnally

Steve Davis wrote:
> 
> I am using Turbine 2.2 and I am trying to build an
> application where I need to reference TurbineUser.USER_ID
> and TurbineGroup.GROUP_ID as foreign keys in my Torque XML.
> Has anyone ever done this that could give me pointers?
> 
> I got Torque to run by creating dummy versions of
> TurbineUser and TurbineGroup in my XML. My thought was
> that I would edit the base peer classes and replace the
> references to my dummy classes with references to the
> real Turbine classes. I am having problems since Torque
> expects the peers to have certain methods and UserPeer
> and GroupPeer do not conform to Torque's standard.
> Specifically the problems lie in the join helper methods.
> Any advice from someone who has done this would be
> appreciated.
> 
> As an aside question.  Is there a method in any of the
> various classes that returns a collection of Groups that
> a user has a Role association with through the UserGroupRole
> table?  I was trying to write my own but ran into a small
> roadblock when I could not find a UserGroupRole object that
> corresponds to the UserGroupRolePeer.  I am trying to
> locate the javadocs for Village so I can figure out how
> to parse the raw Record object from BasePeer to do what
> I want.
> 
> Are there any plans for 3.0 to make the Turbine security
> objects conform to the Torque model? I.E. have classes that
> extend the Torque base classes and peers that extend the
> base peers.
> 
> Steven F. Davis
> Application Architect
> [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> 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