We had a requirement to add some additional values to the personal title
dropdown and noticed that the list of Personal Titles were hardcoded in the
application.  Once more, they were stored with the localized value in the
database.  It seemed that the correct thing to do would be to introduce an
enumeration for the personal title and store the enumeration id on the
Person entity instead.

Providing this is true, I have some questions about how to effectively
handle the data migration this approach would take.  My initial approach
would be to add this new enumeration and create a new column on the Person
entity (something like personalTitleEnumId).  The UI artifacts and email
templates would be updated to make use of this new column via a new/updated
view-entity that would include the personal title enumeration description.

So here are my questions --

1) Is there value in doing this / is this the right approach?
2) What would we do with the old column (assuming we should introduce a new
one)
3) How do we handle the data migration
4) Is it worth supporting backwards compatibility to the old column in the
UI/Email templates; or would we force data migration
-- 
View this message in context: 
http://www.nabble.com/Adding-an-enumeration-for-Person--%3E-PersonalTitle-tp23872556p23872556.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.

Reply via email to