[
https://issues.apache.org/jira/browse/OFBIZ-495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554155 ]
Adrian Crum commented on OFBIZ-495:
-----------------------------------
Jacopo,
I'm sure there are things that need to be built out in this new feature, and we'll just have to see how people use it.
Regarding the primary key for the UserPreference entity: in order for the key to be unique, it would have to include the userPrefGroupId field, but that field is optional, so I left the primary key out of the entity. Most of the retrieval operations on this entity will be findByAnd, so I didn't think a primary key was necessary.
Regarding field type differences between the two entities: userPrefGroupId is optional in the UserPreference entity, and it is required in the UserPrefGroupType entity. I didn't want to force developers to create a UserPrefGroupType record for every preference setting. I pictured the UserPrefGroupType entity being used primarily for the UI - where you need to describe to the user what the preference setting is used for. In other words, the User Preferences feature could operate just as well without the UserPrefGroupType entity.
> User Preferences Feature
> ------------------------
>
> Key: OFBIZ-495
> URL:
https://issues.apache.org/jira/browse/OFBIZ-495> Project: OFBiz
> Issue Type: New Feature
> Components: framework
> Affects Versions: SVN trunk
> Reporter: Adrian Crum
> Assignee: Adrian Crum
> Priority: Minor
> Fix For: SVN trunk
>
> Attachments: COLLAPSD.JPG, example.patch, example.patch, example.patch, example.patch, EXPANDED.JPG, user_pref.patch, user_pref.patch, user_pref.patch, user_pref.patch, user_pref.patch, user_pref.patch
>
>
> The User Preferences Services are intended to store and retrieve the current user's preferences. User preferences can be used to control UI elements, frequently used search and report criteria, and more.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.