From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20040914
Description of problem:
Throughout our code, we have instances where foreign keys are being
used as valid attributes of an object. These should be removed since
hibernate maps these automatically between objects.
- webUserId was in Address
- The User object has a one-to-many mapping on the web_user_id column.
If an object requires a bi-directional mapping, we should do that
instead of manually setting these foreign keys.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Look around in our mappings for foreign key based attrs
Fixed Address/User - webUserId
- added bi-directional mapping so given an address we can get the user.
Fixed EmailAddress/User - UserId