Yes, the “modified bit db columns” are based on the property names. AFAIK, you 
cannot configure this today.

Feel free to create a JIRA issue about this.

From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of 
Alejandro Calbazana
Sent: den 25 februari 2016 21:40
To: nhusers <nhusers@googlegroups.com>
Subject: [nhusers] nhibernate.envers + global_with_modified_flag + _MOD column 
names

Hello,

When using "global_with_modified_flag" configuration, does anyone know if there 
is a way to control the column names used for the modified bit flag set against 
a domain's property?  Let me describe what I'm seeing:

I've created a simple class with 3 properties whose property names are 
different from the column name.  Here is an example of my fluent Nhibernate 
mapping:

            Table("SampleEntity");
            Id(x => x.Id).Column("SampleID").GeneratedBy.Guid();
            Map(x => x.Prop1).Column("Property_1");
            Map(x => x.Prop2).Column("Property_2");
            Map(x => x.Prop3).Column("Property_3");

For the audit, envers picks up the configured column names properly.  However, 
the root column name for the bit flag does not seem to come from configuration. 
 It seems to come only from the name of the property.

Audits for the prop columns go to the correct place, but the SQL generated for 
the modified bit wants columns are called Prop1_MOD, Prop2_MOD, etc...  I 
expect it to honor Property_1_MOD, Property_2_MOD, etc...

Am I missing a setting somewhere that governs this behavior?

Thanks!

Alejandro
--
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
nhusers+unsubscr...@googlegroups.com<mailto:nhusers+unsubscr...@googlegroups.com>.
To post to this group, send email to 
nhusers@googlegroups.com<mailto:nhusers@googlegroups.com>.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nhusers+unsubscr...@googlegroups.com.
To post to this group, send email to nhusers@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to