سؤال

I have kind of naive question related to envers. Can we name a audit table to something other then the default one, i.e., TableName_AUD and ya not just Prefix or suffix, full name.

هل كانت مفيدة؟

المحلول

Yes, if you annotate a given entity with @AuditTable you can specify the table that should be used. I don't think you can specify a global naming strategy to use.

نصائح أخرى

use configuration http://docs.jboss.org/envers/docs/index.html#configuration and you've got custom prefix or suffix for audited tables

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top