This content has been marked as final. Show 4 replies
user13534543 wrote:So you have a work flow.
Requirement : Some of the department values say deptno., deptname, deptManager when amended(edited) is subjected to authorisation. Only after authorisation these department values gets persisted in database table - DEPARTMENT. The DepartmentBean is the java bean.
1. Record suggested change
2. Review suggested change
3. Post actual change.
Once authorised the status will change to 'approved', the value will be stored against its TABLE_NAME/COLUMN_NAME.What happens if it isn't authorized?
P.S : I have taken department as an entity for example there are many other entities having the same requirementWhere many = 10, 100 or 1000?
For me somehow the very idea of storing a column name (DEPARTMENT.DEPT_NO) inside a database table (INTERMEDIARY_TABLE) doesn't look right and good.It is ok but whether is it ideal depends on business needs.
What are the real user situations where data needs to change?
Is this something where there is one single update once a week?
Or is there one column that gets updated every hour but everything else rarely gets updated?
Or is that for any given record there are multiple updates per row at one time?
And what is the review process? Is there a GUI? Are there multiple different people reviewing multiple different things?
I will note that your current design lends itself to code generation in that you can populate allowed values via an constraint to an enumeration table by generating the values directly against a schema.