Any historical query materializing entity instances throws NHibernate.Envers.Exceptions.NotAuditedException: EntityNameHere is not versioned!.
Following conditions must be met:
There is one to one bidirectional relation between some entities (eg.
entity is auditable,
is not auditable
has refeference property of type
marked as RelationTargetAuditMode.NotAudited
There are records in database (problem occurs when PropertyMapper maps entity
What's wrong ?
OneToOneNotOwningMapper is used.
IMHO OneToOnePrimaryKeyJoinColumnMapper should be used in such case.