hibernate - How to put envers annotations into XML Mapping Metadata(orm.xml) file -
in application, using xml mapping metadata alternative annotation. worked fine jpa annotations far. auditing, using hibernate envers. declaring
@audited
@audittable("loan_applicant_audit")
problem how put these annotations in xml mapping metadata form. there requirement user should specify list of tables, needs audited.
plus should able configure name of audit tables according needs.
last step particular column names inside table needs audited should configurable.
currently that's not possible. envers works annotating pojos only. there jira ticket enable xml config, doesn't feature come anytime soon:
https://hibernate.atlassian.net/browse/hhh-3887
anyway, if want use envers, you'll have go annotations.
Comments
Post a Comment