Questions tagged [nhibernate-envers]

Powerful audit trail integrated with NHibernate

Envers adds powerful audit trail capabilities integrated with NHibernate.

Questions that address one or more of these features are a candidte for this tag

  • Auditing of all NHibernate mappings
  • Auditing custom types and collections/maps of "simple" types (strings, integers, etc.)
  • Logging data for each revision using a "revision entity"
  • Querying historical data

NuGet
Poject site

62 questions
1
vote
0 answers

Hibernate Envers throwing java.sql.SQLException: Fail to convert to internal representation

I am using the hibernate envers version 5.2.17.Final to store and retrieve the audit history for the entities and getting the following exception while retrieving the audit history for a Category entity. Here is how my Category entity looks like…
Ravi
  • 1,082
  • 4
  • 15
  • 24
1
vote
0 answers

IntegrateWithEnvers error

I am trying to start using nhibernate envers and I seem to be getting an error whenever trying to configure it. I'm only trying to setup auditing on a single entity for now to try to keep it somewhat simple. I am getting the following error: An…
Cole W
  • 15,123
  • 6
  • 51
  • 85
1
vote
0 answers

Envers, Liquibase and Hibernate

i looking for a way for create (with DDL = none in hibernate) the schema for the audit tables on the fly. At the moment i use liquibase for create the schema of my tables. The configuration is with hibernate (spring boot application) with a DB2…
1
vote
1 answer

Envers with Nhibernate - SetEnversProperty

I'm attempting to setup NHibernate.Envers to use a separate database, schema and table suffix. For some reason, the configuration changes I'm setting at being ignored. Example Code var nhCfg = new…
Dave
  • 13
  • 2
1
vote
0 answers

Tables not created using Envers, without errors in compilation

I try create the tables with following code: protected override void PostProcessMappings(Configuration config) { base.PostProcessMappings(config); var enversConf = new…
Bianza
  • 11
  • 1
1
vote
1 answer

Joining NHibernate.Envers revision information to an audited entity

Is there an easy way to join the latest revision information for an entity when querying an entity? Another way would be mapping the properties (using Fluent NHibernate) to the entity, e.g. a entity.LatestRevisionDateTime property. This is required,…
sanosdole
  • 2,469
  • 16
  • 18
1
vote
1 answer

NHibernate Envers - error at many-to-many relationship with the same type

I'm totally new to NHibernate Envers, I have added new field to the entity mapping many-to-many relationship. public class Product { // initialization in ctor ... public virtual ISet ExcludedFromConversion { get; set; } ... // mapping…
1
vote
0 answers

NHibernate Envers not created audit tables

I have tried with following code config.SetEnversProperty(ConfigurationKey.DefaultSchema, "audit"); config.SetEnversProperty(ConfigurationKey.RevisionFieldName, "Rev"); config.SetEnversProperty(ConfigurationKey.RevisionTypeFieldName,…
Premila
  • 15
  • 5
1
vote
1 answer

Obtain current user session outside of the service in a thread safe manner

My ServiceStack-based app uses built-in Authentication feature and runs in SelfHosted mode (AppHostHttpListenerLongRunningBase). I'm using NHibernate with Envers for audit trailing. Envers could be provided with optional singleton instance which…
migajek
  • 8,524
  • 15
  • 77
  • 116
1
vote
1 answer

ENVERS: Configure ValidityAuditStrategy using Fluent Configuration

I have tried to make ENVERS (Audit and Logging Tool for NHibernate) work with the ValidityAuditStrategy strategy, but I have'nt been successfull. My NHibernate (fluent using envers extension method) looks like this: var fluentConfiguration…
1
vote
1 answer

nHibernate Envers MOD

I am new to nHibernate Envers, I am Tracking entity changes at property level, which creates columns with the properties names with a suffix of _MOD by default, there is a option of changing this suffix.…
1
vote
2 answers

NHibernate Envers - how to audit revisions on a separate database?

I'm using Nhibernate Envers and I want Envers to save audit info on a separate database to keep things cleaner/more maintainable. I'm using this fluent configuration: var enversCfg = new…
0
votes
2 answers

Sharp Architecture + NHibernate Envers

Currently we are using Sharp Architecture 1.9.6. And we need to audit our domain classes. It seems comfortably to use NHibernate Envers for this task. But I couldn't configure Sharp Architecture to use this library. There were some errors but I…
0
votes
2 answers

Running into problem setting NHibernate Envers with table per class mapping

We have been looking at using Envers, but have run into a road block. We use a table/class structure that is using table per class inheritance for a couple of classes. While NHibernate and Envers are loading, an error occurs when it tries to create…
zbd
  • 1
  • 1
  • 1
0
votes
1 answer

Is there a way to track only object deletes in NHibernate Envers?

I'd like to configure NHibernate Envers so that only object deletes are audited. Is it possible?
kazakm
  • 31
  • 4