ExcludeRelationalData in a bidirectional onetoone relationship

Description

Any historical query materializing entity instances throws NHibernate.Envers.Exceptions.NotAuditedException: EntityNameHere is not versioned!.

Following conditions must be met:

  1. There is one to one bidirectional relation between some entities (eg.

    A

    and

    B

    )

  2. A

    entity is auditable,

    B

    is not auditable

  3. A

    has refeference property of type

    B

    marked as RelationTargetAuditMode.NotAudited

  4. There are records in database (problem occurs when PropertyMapper maps entity

    B

    )

What's wrong ?
OneToOneNotOwningMapper is used.
IMHO OneToOnePrimaryKeyJoinColumnMapper should be used in such case.

Environment

None

Assignee

Roger

Reporter

Pawel Owerko

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure