In my company, i am a java developer and we use hibernate orm. Data Architects wanted audit columns ( CREATE_DATE, CREATED_BY, UPDATE_DATE, UPDATED_BY ) for every table on every database, because of data related purposes. This seems a bit weird, because we don't use these fields in our application business.
For our java applications, I guess, we have two options:
- Making a base class with these audit fields on every hibernate dao object.
- Defining table triggers to update these columns.
Which one should I prefer and why? Any other suggestions?