Integration with NHibernate.Envers

Description

There's a problem with AttributeSearchMapping class that's preventing coexistence of NHibernate.Search and NHibernate.Envers.

NHibernate.Search looks through all mappings to find mapped classes that are indexed. NHibernate.Envers creates additional mappings for audit tables, but those mappings don't have corresponding classes. That's causing AttributeSearchMapping.Build() method to break with NullReferenceException when it gets to that mapping.

The attached patch adds null check before checking if mapping class is indexed.

Also attached is a patch that adds support for NHibernate 3.2 GA (only code changes, NHibernate 3.2 dlls needs to be added manually).

Environment

None

Attachments

2

Activity

Show:

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created August 4, 2011 at 3:59 PM
Updated August 4, 2011 at 3:59 PM
Who's Looking?