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

Activity

Show:
Roger
June 20, 2013, 7:28 PM

Thanks for your input.

Any particular reason your test case depends on SqliLite?

Roger
June 20, 2013, 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)

Tobias Wolschon
June 21, 2013, 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.

Assignee

Roger

Reporter

Tobias Wolschon

Labels

Components

Fix versions

Affects versions

Priority

Minor
Configure