struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Søren Blidorf <so...@nolas.dk>
Subject SV: [OT] JDBCRealm question
Date Sun, 09 Mar 2003 19:22:27 GMT
Yes, username is primary key in both

-----Oprindelig meddelelse-----
Fra: Dan Allen [mailto:dan@mojavelinux.com] 
Sendt: 9. marts 2003 20:14
Til: Struts-User List
Emne: [OT] JDBCRealm question

This is a simple one, pardon the request for advice.

In the specs for JDBCRealm it talks about a username column being in
the users table and in the user_role table.  Does this mean that the
username column has to be the primary key in the users table and not
a user_id??  I thought it was bad design to make a text field a
primary key since it means that it would have to be updated in two
places if the user changed usernames, or are we sticking with the
requirment that users can't change usernames or that it is an
uncommon task?

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, <dan@mojavelinux.com>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
[Frodo]: "He deserves death." 
[Gandalf]: "Deserves it! I daresay he does. Many that live 
deserve death. And some that die deserve life.  Can you give 
it to them?  Then do not be too eager to deal out death in 
judgement. For even the very wise cannot see all ends."
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message