-
1. Re: Partial auditing with MappedSuperclasses
adamw Apr 29, 2013 12:10 PM (in response to chessray)I think 1a) should work fine. Although ... the "real" entities don't have any audited properties?
Adam
-
2. Re: Partial auditing with MappedSuperclasses
chessray Apr 29, 2013 12:28 PM (in response to adamw)Hi Adam,
Thanks for the response. As mentionend, we tried all of the above, but with no results. 1.a) just leads to Envers not doing anything - I tried with the Hibernate debug output on, and it definitely doesn't care about auditing at all (it doesn't even SELECT the sequence for the auditing entries).
Like you say, the "real" entities don't have any audited properties of their own - or any properties at all, for that matter. All properties are inherited from the generated MappedSuperclasses. This setup's main intention is that we can keep the generated code fully apart from the manually developed parts. Plus, it's fitting quite well with our own application framework (which basically means that for us there's no way to rethink this whole thing in the current project state). It's working fine for everything - with the exception of employing envers for auditing.
As I mentioned, we're open for suggestions. If you need more information to get down to the bottom, feel free to ask.
-
3. Re: Partial auditing with MappedSuperclasses
adamw May 23, 2013 11:36 AM (in response to chessray)1 of 1 people found this helpfulI don't think there's anything with Envers that you can do currently ... that's kind of a bug (/feature request?) Can you report in JIRA?
Adam
-
4. Re: Partial auditing with MappedSuperclasses
chessray May 24, 2013 3:27 AM (in response to adamw)Hi Adam,
Again thanks for looking into this. Here's the JIRA: https://hibernate.atlassian.net/browse/HHH-8268
I'll try to produce a minimum test case, but I'm not sure when I'll be able to do so.