Hello All,
I have been struggling with trying to extend JetspeedUser:
I have:
1) modified torque-schema.xml
2) generated new OM/SQL Scripts
3) Updated database with new schemas
4) Extended BaseJetspeedUser (MyJetspeedUser.class)
--- SO FAR SO GOOD, EVERYTHING CONTINUES TO OPERATE AS NORMAL ---
5) Within the createUser method of CreateNewUserAndConfirm I have
MyJetspeedUser myJetspeedUser = (MyJetspeedUser) user;
myJetspeedUser.setTitle("MR."); // trying to force MR. entry
into db
--> Tried: data.setUser(myJetspeedUser);
--> Result after trying to add a new user using
"create account link", account created, TITLE field in database NULL!
-->Tried: myJetspeedUser.save();
--> Result after trying to add a new user using
"create account link", exception, user already exists..
I would like clarification on the process to add additional fields to
TURBINE_USER / new account creation:
Do I have to replace the user object (currently JetspeedUser) with
MyJetspeedUser entirely? It seems to defeat the purpose of subclassing.
Your help is greatly appreciated!
Amin