Is there anyway to use Turbine (Torque) to create a one-to-one mapping in
the database schema? I'm extending the TURBINE_USER per instructions on
Turbine site:

http://jakarta.apache.org/turbine/turbine-2.2.1/howto/extend-user-howto.html

But instead of creating over 25 new columns in the user table, I'm create a
new USER_PROFILE table with all the additional information. What I'm facing
now is this:

ExtendedUser user = (ExtendedUser)data.getUser();
UserProfile profile = (UserProfile)user.getUserProfiles().get(0);

There is only 1 profile for 1 user - one to one. Instead of the above code,
I would like to do this:

ExtendedUser user = (ExtendedUser)data.getUser();
UserProfile profile = user.getUserProfile();

Can anyone tell me how to accomplish this without extending the ExtendedUser
class?

Thanks

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

Reply via email to