Just to update, I get the following error on an Annotation like this :
@DiscriminatorFormula("case when COL1 IS NULL then 'ABC' else 'XYZ' end")
Caused by: java.lang.ClassCastException: org.hibernate.mapping.Formula
... 47 more
1 of 1 people found this helpful
Well, you could mark such properties with @NotAudited, but then the content won't be audited.
If you'd like to have these audited, Envers would have to support such mappings.
Thank you for the reply. But we needed these Entities to be audited (Infact I was testing an important module which needs to be audited and found these errors). Any idea when would Envers be able to support such mappings ?
This is the last chance I have got to try to implement Envers - or else we would be going ahead with the conventional trigger based Audit tables.
Well support for these features is on the roadmap but I am not able to tell you when they will be implemented. Most probably when a user submits a patch (maybe you would like to take a look at the source code?) or when I need it .
There is also commercial support available by SoftwareMill (http://www.softwaremill.eu), which includes new feature development.