문제

I am new to nHibernate Envers, I am Tracking entity changes at property level, which creates columns with the properties names with a suffix of _MOD by default, there is a option of changing this suffix.

http://envers.bitbucket.org/#envers-envers-tracking-properties-changes-queries

But, i need the columns names for these MOD flags based on ColumnName_MOD instead of PropertyName_MOD.

Where can I change this configuration. Any clues would be really helpful.

Thanks, Su

도움이 되었습니까?

해결책

You can't today.

The reason it works this way is for consistency - some "MOD columns" doesn't have to be "mapped" to one single database columns but to its property. Eg components, user types with multiple columns and so forth, all use one MOD column even though the audited data is (can be) represented as multiple columns.

If you want to, you can report your issue here https://nhibernate.jira.com/browse/NHE

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top