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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -