Envers ignores properties in derived components

Description

Consider class B deriving from class A. There is an entity C referencing class B as a component. Envers includes the properties of class B, but ignores the properties of class A. In normal queries, NHibernate does not ignore the properties of class A. I attached a unit test for demonstration (using an SQLite database).
However, there is a workaround for this: Make class A's properties virtual and override them in class B. But it would be nice, if Envers includes them without this ugly workaround.

Environment

None

Attachments

1

Activity

Show:

Tobias Wolschon June 21, 2013 at 5:19 AM

I ran the tests using SQLite and left the reference in there, because the project file was modified as well. Sorry for that. Next time, I will clean up the modifications and try a pull request.
Thanks for the quick fix.

Roger June 20, 2013 at 8:26 PM

Thanks for you report. Fixed.

FYI
I removed the dependency to SqlLite (also, I "tabified" your test classes - see here; https://bitbucket.org/RogerKratz/nhibernate.envers/src/f18b2ee0ab92bf13813c3c9beccb74d2670e8401/HOW_TO_CONTRIBUTE.txt?at=default)

Roger June 20, 2013 at 7:28 PM

Thanks for your input.

Any particular reason your test case depends on SqliLite?

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?

Created June 20, 2013 at 1:32 PM
Updated June 21, 2013 at 5:19 AM
Resolved June 20, 2013 at 8:26 PM
Who's Looking?