[nhusers] Envers 5.2.0 released

2018-12-04 Thread Roger Kratz
NHibernate Envers targeting NH Core 5.2.0 now released. https://www.nuget.org/packages/NHibernate.Envers/5.2.0 -- 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 nhuser

RE: [nhusers] Add auditing through Http

2018-11-13 Thread Roger Kratz
Yes, IRevisionListener supports DI. var myListener = new MyRevisionListener(new DepA(), new DepB(new DepC())) https://nhibernate.jira.com/browse/NHE-17 From: nhusers@googlegroups.com On Behalf Of Pratip Bagchi Sent: den 12 november 2018 18:43 To: nhusers Subject: [nhusers] Add auditing thro

RE: [nhusers] NHibernate.Envers strong-name

2018-06-21 Thread Roger Kratz
Please add an issue or fix/pull request here https://github.com/nhibernate/nhibernate-envers Regards Roger From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Erko Sent: den 20 juni 2018 10:49 To: nhusers Subject: [nhusers] NHibernate.Envers strong-name Hello, NHiber

RE: [nhusers] Custom User Type with IUserType

2018-04-09 Thread Roger Kratz
IMHO, do not unit test/mock nhib types. Write integration tests for this instead. From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Robert Eberhart Sent: den 6 april 2018 19:50 To: nhusers@googlegroups.com Subject: Re: [nhusers] Custom User Type with IUserType Hell

RE: [nhusers] NH-3488 - Strongly typed Inserts, Updates and Deletes vs NHibernate Envers

2017-10-23 Thread Roger Kratz
NHbernate Envers relies on event listeners. I don’t know how strongly typed updates works, but I guess they don’t use these listeners (?). Most probably they can’t because the code doesn’t know what data will be updated. Someone with better understanding of “strongly typed updates” could maybe

RE: [nhusers] Envers global ICustomCollectionMapperFactory implementation?

2017-05-16 Thread Roger Kratz
You can create your own ICollectionMapperFactory and set that type to configuration property nhibernate.envers.collection_mapper_factory. For “inspiration” you can look at this obsolute project, https://bitbucket.org/RogerKratz/nhibernate.envers.setfornet4, that made envers support NHibernate.S

RE: [nhusers] Envers with Custom SessionFactory injection

2016-09-01 Thread Roger Kratz
<> If so, you need to use distr transactions if you want to ensure db “consistency”. From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of John Rolando Aristizabal Zuluaga Sent: den 31 augusti 2016 16:16 To: nhusers Subject: [nhusers] Envers with Custom SessionFactory

[nhusers] NH Envers 2.1 just released!

2016-08-15 Thread Roger Kratz
Available on nugget https://www.nuget.org/packages/NHibernate.Envers/ [NHE-145] - Error with access="none" mapping [NHE-146] - Modifying both collection and property doesn't set collection changed flag [NHE-150] - ExcludeRelationalData in a bidirectional onetoone relationship [NHE-152] - Queryin

RE: [nhusers] nhibernate.envers + global_with_modified_flag + _MOD column names

2016-02-26 Thread Roger Kratz
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

RE: [nhusers] Envers with property

2016-01-08 Thread Roger Kratz
Not supported. The issue for related many-to-any is here https://nhibernate.jira.com/projects/NHE/issues/NHE-61. From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of César Pistiner Sent: den 8 januari 2016 15:11 To: nhusers@googlegroups.com Subject: [nhusers] Envers w

RE: [nhusers] Envers: erroneous primary key for mapped collection

2015-10-09 Thread Roger Kratz
<< But for the moment, I still have the problem to find a place, where I am able to hook my workaround into NHibernate/Envers. I know, envers use the infrastructure of NHibernate to create the table on the database, but there must be a place where envers creates automatically a kind of schema de

RE: [nhusers] Envers: erroneous primary key for mapped collection

2015-10-08 Thread Roger Kratz
With the mapping you have, the ”SettingValue” is supposed to be part in the audited table’s primary key. Or rather – part of the generated audited composite-id mapping for ”HardwareSettings”. << Has someone an idea where to hook in to change the way Envers creates the schema for the audit table

RE: [nhusers] "unable to perform aftertransactioncompletion callback" envers error

2015-05-12 Thread Roger Kratz
Don’t know if I understand you’re attached mapping files correctly but it seems you’ve manually tried to map the “audited” entities (=LogKisi). You shouldn’t do that. Just map your entities (“Kisi”) like normal and you’re done. From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] O

RE: [nhusers] Re: Unable to cast object of type 'System.Collections.Generic.Dictionary`2[System.String, System.Object]' to type XYZ

2015-03-12 Thread Roger Kratz
1. No, you can keep them in the same commit. I just meant that the test should expose the bug – so without your fix it should fail (if your fix wasn’t there). 2. The namespace Tests\Integration is ported Hibernate Envers tests. In Tests\NetSpecific are tests written for NH Envers. Below this fol

RE: [nhusers] Unable to cast object of type 'System.Collections.Generic.Dictionary`2[System.String, System.Object]' to type XYZ

2015-03-10 Thread Roger Kratz
Don’t know I’m afraid. Please try to isolate your problem to a test case and create a pull request. From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Devin Michael Sent: den 9 mars 2015 17:06 To: nhusers@googlegroups.com Subject: [nhusers] Unable to cast object of typ

RE: [nhusers] Envers - Cannot extend unmapped class DefaultTrackingModifiedEntitiesRevisionEntity exception

2015-03-10 Thread Roger Kratz
is done during the commenting out in the demo solution. May I politely ask if you would mind looking at the solution provided because I really am stuck at the moment and there must be something simple I am missing. Many thanks. Scott. Kind regards, Scott On 9 Mar 2015, at 18:32, Roger Kratz

Re: [nhusers] Envers - Cannot extend unmapped class DefaultTrackingModifiedEntitiesRevisionEntity exception

2015-03-09 Thread Roger Kratz
If your using a custom revision entity, you need to map that entity (as a normal nh core entity). Sent from Samsung tablet Original message >From Scott Findlater Date: 2015/03/09 17:58 (GMT+01:00) To nhusers@googlegroups.com Subject [nhusers] Envers - Cannot extend unmapp

RE: [nhusers] Envers - FluentConfiguration SetRevisionEntity modifiedEntityNames and revisionListener

2015-03-09 Thread Roger Kratz
No, probably not. Please report an JIRA issue about this and I’ll make it public “soon”. (if you want to make a pull request, you are more than welcome. If so – have a look at the RevisionInfo*Test under NetSpecific/UnitTests) /Roger From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.

RE: [nhusers] Nhibernate-Envers: Audit-Query generates subsequent queries for the revision info

2014-10-15 Thread Roger Kratz
Most probably caused by this bug in NH Core https://nhibernate.jira.com/browse/NH-2907 This bug occurs when having a dynamic model with key-many-to-one mapping and the related entity has equals and/or gethashcode overridden. Internally Envers uses this mapping (you cannot change this). The bug c

RE: [nhusers] Re: NHibernate 4.0.0.GA released

2014-08-18 Thread Roger Kratz
It has already been released http://www.nuget.org/packages/NHibernate.Envers/ From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of José Henrique (Zote) Sent: den 18 augusti 2014 02:22 To: nhusers@googlegroups.com Cc: nhibernate-developm...@googlegroups.com Subject: Re: [

RE: [nhusers] Re: NHibernate 4.0.0.GA released

2014-08-18 Thread Roger Kratz
SortedSet != OrderedSet That being said, I defiantly think the dependency should be dropped. -Original Message- From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Ricardo Peres Sent: den 18 augusti 2014 09:48 To: nhusers@googlegroups.com Subject: Re: [nhusers]

Re: [nhusers] Re: NHibernate 4.0.0.GA released

2014-08-17 Thread Roger Kratz
It's still used for ordered sets. https://github.com/nhibernate/nhibernate-core/pull/245 Original message >From Ricardo Peres Date: 2014/08/18 01:41 (GMT+01:00) To nhibernate-developm...@googlegroups.com Cc nhusers@googlegroups.com Subject [nhusers] Re: NHibernate 4.0.0.GA r

Re: [nhusers] Envers: Auditing inherited properties in an audited entity

2014-08-08 Thread Roger Kratz
Are you configuring envers using attributes or code? In either case - sounds like a bug to me. Please create a jira issue, preferably with a failing test. Sent from Samsung Mobile Original message From: Scott Resnik Date:2014/08/07 9:28 PM (GMT+01:00) To: nhusers@googlegroup

Re: [nhusers] Envers: error auditing entity with Set property

2014-07-31 Thread Roger Kratz
I'm away from VS currently so I cant really test your example but... Yes. Collections of components should work fine since v 1.6. I dont know fluent nhibernate so if you can reproduce this error with only nh core (and envers), please report it to the jira (eg use hbm mapping). Also, dont really k

RE: [nhusers] Nhibernate Envers Multiple Database Auditing

2014-05-30 Thread Roger Kratz
ntPtr wparam, IntPtr lparam) 2014-05-29 1:40 GMT+03:00 Roger Kratz mailto:roger.kr...@teleopti.com>>: Don't you mean at configuration time? If so, you can set audit catalog globally using nh prop nhibernate.envers.default_catalog http://envers.bitbucket.org/#config-reference If you wan

Re: [nhusers] Nhibernate Envers Multiple Database Auditing

2014-05-28 Thread Roger Kratz
Don't you mean at configuration time? If so, you can set audit catalog globally using nh prop nhibernate.envers.default_catalog http://envers.bitbucket.org/#config-reference If you want to set catalog name per audit entity, you can use SetTableInfo https://bitbucket.org/RogerKratz/nhibernate.enver

Re: [nhusers] Re: How to prevent DB update if value not changed

2014-04-08 Thread Roger Kratz
Maybe related/same as jira issue NH-2841? Sent from Samsung tablet Original message >From Peter V Date: 2014/04/08 20:36 (GMT+01:00) To nhusers@googlegroups.com Subject Re: [nhusers] Re: How to prevent DB update if value not changed Thanks, I did find cases of this in ou

RE: [nhusers] NHibernate Envers: Cannot insert duplicate key in object

2014-03-26 Thread Roger Kratz
I’ve already answered it on SO. At least the “why and if a link table is needed”. If I got the SO message and his own answer correctly, the exception problem has been solved (?). From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of José Henrique Sent: den 26 mars 2014 1

SV: [nhusers] [Envers] Query from different catalog

2014-02-20 Thread Roger Kratz
That explains your problems. If you choose FluentConfiguration, envers' attributes aren't used/read at all. You cannot mix configuration by code (FluentConfiguration) and attribute configuration (AttributeConfiguration). In other words - the attributes you set on your CustomRevInfo isn't read/use

RE: [nhusers] [Envers] Query from different catalog

2014-02-19 Thread Roger Kratz
Can’t see anything wrong on what you’ve posted. If you don’t have the time to isolate your problem a bit more, I don’t know I’m afraid. Sorry. You might want to take a look at Envers’ tests and see what differs to try to find out why they work but you have problems in your environment. If you d

RE: [nhusers] [Envers] Query from different catalog

2014-02-18 Thread Roger Kratz
AFAIK, that ”should” work. Is it one specific query that doesn’t work or is it all of them? How is your configuration object configured? From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Guilherme Paschoal Sent: den 17 februari 2014 21:17 To: nhusers@googlegroups.com

[nhusers] Envers 2.0 Beta 1 was just released!

2013-11-25 Thread Roger Kratz
Hi Envers targeting NH 4 Alpha1 is now available on nuget. https://www.nuget.org/packages/NHibernate.Envers/2.0.0-Beta /Roger -- 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

RE: [nhusers] [Nhibernate.Envers] [1.6 GA] property auditing check

2013-10-29 Thread Roger Kratz
EV] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [DATA] ) ON [DATA] 2013/10/29 Roger Kratz mailto:roger.kr...@teleopti.com>> Can you show us some simple mapping + code? From: nhusers@googlegroup

RE: [nhusers] [Nhibernate.Envers] [1.6 GA] property auditing check

2013-10-29 Thread Roger Kratz
PUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [DATA] ) ON [DATA] 2013/10/29 Roger Kratz mailto:roger.kr...@teleopti.com>> Can you show us some simple mapping + code? From: nhusers@googlegroups.com<mailto:nhusers@googlegroups.com> [mailto:

RE: [nhusers] [Nhibernate.Envers] [1.6 GA] property auditing check

2013-10-29 Thread Roger Kratz
Can you show us some simple mapping + code? From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of kriebb Sent: den 29 oktober 2013 15:06 To: nhusers@googlegroups.com Subject: [nhusers] [Nhibernate.Envers] [1.6 GA] property auditing check Hi, We've setup the auditing on p

RE: [nhusers] Re: several databases

2013-09-23 Thread Roger Kratz
I'm not sure I follow you but... Do you have a single (Nhibernate) Configuration instance for you application or one per database? The exception you get, occurs when you try to decorate multiple mapped entities as "RevisionEntity" in the Configuration object. Maybe you call CreateRevisionInfoMa

Re: [nhusers] several databases

2013-09-19 Thread Roger Kratz
Can you send a simplified example of the configuration you use that fails? Sent from Samsung Mobile Original message Subject: [nhusers] several databases From: Денис Подзюбан To: "nhusers@googlegroups.com" CC: Good day! I use envers version 1.6. Our application works with

SV: [nhusers] How do I get the last ten revisions or unique entities and determine changes against current entity?

2013-08-07 Thread Roger Kratz
I don't know if I understand you correctly but assuming you want to get current and last revision of the 10 "Notes" last modified... 1. Find what Note entities that are changed most recently. Looking at the mapping I guess, in your case, you can simply use the main tables for this (DateStamp pr

SV: [nhusers] nhibernate envers lazy load collection

2013-06-14 Thread Roger Kratz
Need more info. How does your mapping look like? What's the state of the entity you're trying to save? How do you save the entity? If you think it's a bug, please create a small, failing test as a pull request on bitbucket and report the issue to the JIRA, https://nhibernate.jira.com/browse/NHE

RE: [nhusers] Re: [envers] Tracking Revision author

2013-05-23 Thread Roger Kratz
What have you tried? What doesn't work? Read this in the docs http://envers.bitbucket.org/#revisionlog From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Nick Sent: den 23 maj 2013 00:11 To: nhusers@googlegroups.com Subject: [nhusers] Re: [envers] Tracking Revision a

SV: [nhusers] Envers FluentConfiguration: Relation to non-audited table

2013-04-10 Thread Roger Kratz
Using ExcludeRelationData (or RelationTargetAuditMode.NotAudited using Attribute conf) on a bidirectional one-to-many ref currently doesn't work. I saw you reported... https://nhibernate.jira.com/browse/NHE-116 Confirmed. Från: nhusers@googlegroups.com [nhusers

RE: [nhusers] Invalid object name 'REVINFO'. Envers

2013-03-26 Thread Roger Kratz
Where and how are you creating your database schema? Are you using NH's SchemaExport? From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Sukumar K Sent: den 26 mars 2013 07:15 To: nhusers@googlegroups.com Subject: Re: [nhusers] Invalid object name 'REVINFO'. Envers I

SV: [nhusers] Invalid object name 'REVINFO'. Envers

2013-03-25 Thread Roger Kratz
I don't know Fluent NH much but... Where do you generate the DDL? Från: nhusers@googlegroups.com [nhusers@googlegroups.com] för Sukumar K [k.su...@gmail.com] Skickat: den 25 mars 2013 19:12 Till: nhusers@googlegroups.com Ämne: [nhusers] Invalid object name 'REVINF

Re: [nhusers] NHibernate.Envers with MongoDb

2013-03-24 Thread Roger Kratz
Envers supports the same dbs as nh core does. Nh is spezialized around relation databases, so I find it hard to believe that mongodb ever will be supported. Sent from Samsung Mobile Original message Subject: [nhusers] NHibernate.Envers with MongoDb From: Deepak Rohilla To:

[nhusers] NH Envers 1.6 released

2013-03-14 Thread Roger Kratz
Hi NH Envers was just released, http://nuget.org/packages/NHibernate.Envers. This release contains some bug fixes and some new features, eg support for collection of components mapping. For a complete list, have a look at the release notes. Next major release of Envers will (probably) target N

RE: [nhusers] Mapping property of BaseClass type

2013-03-13 Thread Roger Kratz
http://nhforge.org/doc/nh/en/index.html#inheritance-tableperconcrete From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of mouthbow Sent: den 13 mars 2013 16:28 To: nhusers@googlegroups.com Subject: [nhusers] Mapping property of BaseClass type Hi, I'm trying to make this

RE: [nhusers] NHibernate.Envers entity properties change log

2013-02-25 Thread Roger Kratz
What do you help with? How to configure? How to query? What have you tried? ( There is no built in way to get info about _what_ properties have changed (you can query on this however). So if you're main question is how to get "named _changed_ from a to b" info, currently you can't. You need to b

SV: [nhusers] Can you use linq?

2013-02-04 Thread Roger Kratz
No. Från: nhusers@googlegroups.com [nhusers@googlegroups.com] för choboj...@gmail.com [choboj...@gmail.com] Skickat: den 4 februari 2013 19:05 Till: nhusers@googlegroups.com Ämne: [nhusers] Can you use linq? Hi I am wondering if it is possible to use linq with e

Re: [nhusers] Auditing to different database (using Envers)

2013-01-18 Thread Roger Kratz
Just use another catalog. Then you will use "another database" Sent from Samsung Mobile Original message Subject: Re: [nhusers] Auditing to different database (using Envers) From: Wesley Harris To: "nhusers@googlegroups.com" CC: Different database in MS SQL Server terms,

RE: [nhusers] Auditing to different database (using Envers)

2013-01-17 Thread Roger Kratz
What do you mean by "different database"? Another machine/installation or another catalog (or maybe another schema)? Catalog and/or schema - yes (http://envers.bitbucket.org/#config-reference) Another installation - no From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf

SV: [nhusers] NHibernate Envers fluent interface and property tracking questions

2012-12-19 Thread Roger Kratz
<> AFAIK, no - not out of the box. However you could subclass Envers' AuditEventListener and override OnPostInsert, OnPostUpdate and OnPostDelete. There you check if "correct" attributes have changed - if you want to audit the entity, call base implementation, if not do nothing. This instance y

SV: [nhusers] NHibernate Envers fluent interface and property tracking questions

2012-12-18 Thread Roger Kratz
1. What do you mean by "run time configuration"? You don't mean changing what properties to audit after the session factory has been created, right? But yes, you are right. Fluent interface currently only support "exclusion model". 2. An entity and its audited counterpart share the same .net typ

RE: [nhusers] Implementing Publish Functionality in NHibernate.Envers

2012-12-14 Thread Roger Kratz
<< Is there a built in way in Envers where changes are not automatically active>> I'm not sure I fully understand you but... Are you looking for something that sometime in the future will "publish" a new version of an entity? If so, no - Envers has no built in support for that. Envers handles a

SV: [nhusers] SQL Server Identity and Nhibernate.... what is the latest story?

2012-11-27 Thread Roger Kratz
The link you refer to (primarly) says it's a bad choice choosing a not sequential guid identifier strategy. Are you aware of guid.comb to avoid (most of the) fragmentation? Probably noone can't give you a perfect answer "what's the best" though. Do some measurements on your important use cases.

RE: [nhusers] Using version column in my entity in conjunction with envers

2012-11-21 Thread Roger Kratz
Check out nhibernate.envers.do_not_audit_optimistic_locking_field in the docs http://envers.bitbucket.org/#config-reference From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Alex Brown Sent: den 19 november 2012 19:26 To: nhusers@googlegroups.com Subject: [nhusers] U

SV: [nhusers] RE: Envers - custom IIdMapper implementation?

2012-11-20 Thread Roger Kratz
the system retrieve anything other than complete graphs from the DB) which feels like a bug waiting to be triggered Thanks for the assistance, Pete -Original Message- From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Roger Kratz Sent: 20 November 2012 15:16 T

RE: [nhusers] RE: Envers - custom IIdMapper implementation?

2012-11-20 Thread Roger Kratz
injection. Pseudo-code: class MyEntity { Id {get; protected set; } Name { get; set; } [DependencyAttribute] Context { get; set; } // Injected by interceptor } -Original Message- From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Roger Kratz Sent:

[nhusers] RE: Envers - custom IIdMapper implementation?

2012-11-20 Thread Roger Kratz
I don't think it's currently possible. Why do you want to do this? What do you want to accomplish? -Original Message- From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Pete Appleton Sent: den 20 november 2012 13:08 To: nhusers@googlegroups.com Subject: [nhuser

RE: [nhusers] NHibernate envers not creating tables

2012-11-15 Thread Roger Kratz
Good. Thanks. From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Alex Brown Sent: den 15 november 2012 12:14 To: nhusers@googlegroups.com Subject: Re: [nhusers] NHibernate envers not creating tables That's exactly the problem Not sure how I managed to get them roun

RE: [nhusers] NHibernate envers not creating tables

2012-11-15 Thread Roger Kratz
I don't know fluent nh at all, but it seems you're updating the schema before configuring envers? From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Alex Brown Sent: den 14 november 2012 19:34 To: nhusers@googlegroups.com Subject: [nhusers] NHibernate envers not creati

[nhusers] RE: Antlr.Runtime.MismatchedTokenException from Envers with generic entities

2012-11-14 Thread Roger Kratz
Probably a bug in Envers. Can you please JIRA this with a (minimal) failing test? -Original Message- From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Pete Appleton Sent: den 14 november 2012 17:13 To: nhusers@googlegroups.com Subject: [nhusers] Antlr.Runtime.

RE: [nhusers] Re: Retrieving the revision number and revisionType with nhibernate.enver

2012-11-14 Thread Roger Kratz
I saw your cross post on stackoverflow... http://stackoverflow.com/questions/13378429/storing-previous-versions-with-parent-entity-using-nhibernate-envers ... before I saw this one. I posted an answer there. Short answer here as well; When using Envers, it take cares of auditing for you. You don't

RE: [nhusers] Retrieving the revision number and revisionType with nhibernate.enver

2012-11-13 Thread Roger Kratz
What is "License"? I guess that's an entity? Your revision entity must not derive from any "normal" entity. If you specify a custom revision entity (you don't have to), this type is global for all entities. This type must contain a revision number and a timestamp/date but often also includes e

RE: [nhusers] Retrieving the revision number and revisionType with nhibernate.enver

2012-11-13 Thread Roger Kratz
Use ForHistoryOf() Instead of ForRevisionsOf From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Alex Brown Sent: den 13 november 2012 13:06 To: nhusers@googlegroups.com Subject: [nhusers] Retrieving the revision number and revisionType with nhibernate.enver I'm queryi

SV: [nhusers] NHibernate.Envers - Marking a class as [Audited] without using attribute

2012-11-12 Thread Roger Kratz
Absolutely. Simple example var enversCfg = new FluentConfiguration(); enversCfg.Audit(); nhConfiguration.IntegrateWithEnvers(enversCfg); Från: nhusers@googlegroups.com [nhusers@googlegroups.com] för Alex Brown [a...@alexjamesbrown.com] Skickat: den 12 nove

RE: [nhusers] Enver IdBag Support

2012-10-10 Thread Roger Kratz
<< Is there any particular reason why IdBag is not supported?>> No << Or is it just waiting for someone to implement it?>> Yes Please JIRA (https://nhibernate.jira.com/browse/NHE) this with at least a failing test. Even better if you can provide a fix as well ;) From: nhusers@googlegroups.

[nhusers] New NHibernate Envers version

2012-10-05 Thread Roger Kratz
Hi Envers 1.4 was released on nuget today. Available here... http://nuget.org/packages/NHibernate.Envers /Roger -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to nhusers@googlegroups.com. To unsubscribe from this

RE: [nhusers] Enver entity dependency

2012-10-05 Thread Roger Kratz
In what purpose? Is it "write reasons" or "read reasons"? Do you want it for audit logging for some security reason or do you want it to because you want to display some sort of "history list" where changes of Company and Address or mixed together? From: nhusers@googlegroups.com [mailto:nhuse

SV: [nhusers] Table prefix

2012-08-18 Thread Roger Kratz
Probably a bug. Please JIRA this here... https://nhibernate.jira.com/browse/NHE ...with a minimal mapping example and, preferably, a small unit test. As a work around you should be able to set an explict table name. Use AuditJoinTableAttribute if you use attribute conf. If you use fluent conf, w

[nhusers] NH Envers 1.2 released

2012-06-12 Thread Roger Kratz
NHibernate Envers 1.2 (using NH Core 3.3.1) was just released. Binaries: https://sourceforge.net/projects/nhcontrib/files/NHibernate.Envers/1.2GA/ Nuget: http://nuget.org/packages/NHibernate.Envers Docs: http://envers.bitbucket.org/ Release notes: https://bitbucket.org/RogerKratz/nhibernate.enve

[nhusers] NHibernate Envers docs online

2012-06-07 Thread Roger Kratz
NH Envers docs are now available online http://envers.bitbucket.org/ Contributions to the docs are more than welcome (source code for docs are part of NH Envers project)! /Roger -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group

RE: [nhusers] Envers and Oracle

2012-06-04 Thread Roger Kratz
Envers (latest trunk) should now work fine against Oracle. If you find any issues, please report them to the JIRA with a failing test. From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Örjan Fjällborg Sent: den 1 juni 2012 15:07 To: nhusers@googlegroups.com Subject: R

RE: [nhusers] Envers and Oracle

2012-06-01 Thread Roger Kratz
I finally got Oracle up and running in my environment. Will hopefully find time to fix Oracle issues pretty soon. Added a new JIRA issue for this https://nhibernate.jira.com/browse/NHE-78 From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Örjan Fjällborg Sent: den 1

RE: [nhusers] Envers and Oracle

2012-06-01 Thread Roger Kratz
Thanks. I will try to setup an Oracle db somehow to be able to fix your issue(s). (few days, weeks - don't know unfortunately) From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Örjan Fjällborg Sent: den 1 juni 2012 12:46 To: nhusers@googlegroups.com Subject: Re: [nhu

SV: [nhusers] Envers and Oracle

2012-05-31 Thread Roger Kratz
Can you please run envers' test suite (envers source code I mean) and see which tests fails? Från: nhusers@googlegroups.com [nhusers@googlegroups.com] för Örjan Fjällborg [orjan.fjallb...@gmail.com] Skickat: den 31 maj 2012 18:40 Till: nhusers@googlegrou

RE: [nhusers] Envers and Oracle

2012-05-31 Thread Roger Kratz
- From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Oskar Berggren Sent: den 31 maj 2012 14:35 To: nhusers@googlegroups.com Subject: Re: [nhusers] Envers and Oracle 2012/5/31 Roger Kratz : > The problem with making sure tests against Oracle works, is simply > that I

RE: [nhusers] Envers and Oracle

2012-05-31 Thread Roger Kratz
The short answer... Yes. Envers should be as database vendor independed as NH Core is. Longer answer... The test written for Envers was originally only tested against SQL Server. The last week I've made the test also run against postgresql and mysql (and done fixes to go all green). Your specifi

RE: [nhusers] [Envers] Recreate firt Revision or avoid it

2012-05-25 Thread Roger Kratz
Hi No. AFAIK - You don't get any help from Envers here. You'd better script in the added users to the audited tables. Shouldn't be that hard - just create a new revision and then copy appropriate rows from "real" tables to audit with revtype set to Added (=0). /Roger -Original Message

RE: [nhusers] Envers - Modify the generated audited entity before insert ?

2012-05-10 Thread Roger Kratz
AFAIK, you can't get any help out-of-the-box from Envers. Envers helps you get you the state of the datasource/entity at revision X. You need to do it some other way I think. Either change the value of address before persisting it (db-trigger, interceptor, event listener or if possible simply s

RE: [nhusers] Envers - Modify the generated audited entity before insert ?

2012-05-09 Thread Roger Kratz
Normally you put extra information on the revision entity and not the audited entity. What is it you want to do in your use case? What information does this "specific property" hold? From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of enjoy Sent: den 9 maj 2012 14:08

RE: [nhusers] disable NHIBENATE ENVERS during batch operation

2012-05-07 Thread Roger Kratz
Do I understand you correctly that you based on X want to audit type Y? If so... 1. Turn on audit for Y on as usual. 2. Inherit AuditEventListener and override OnPostInsert, OnPostUpdate, OnPostDelete, OnPreUpdateCollection, OnPreRemoveCollection and OnPostRecreateCollection. In this method, loo

RE: [nhusers] Envers and batching

2012-04-26 Thread Roger Kratz
AFAIK - It should respect NH Core's setting. Feel free to verify it. :) -Original Message- From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Greg Sent: den 26 april 2012 16:34 To: nhusers Subject: [nhusers] Envers and batching App I am working on has some bulk

SV: [nhusers] Re: NH Envers 1.1 CR1 released!

2012-04-09 Thread Roger Kratz
Roger, Can one use Evers 1.1 with NHibernate 3.2? On Mar 12, 1:00 pm, Roger Kratz wrote: > Hi > > NHibernate Envers 1.1 CR1 targeting NH 3.3 CR1 was released today! It > contains... > > * Lots of bug fixes > > * Tracking Entity Names. Ported f

RE: [nhusers] Re: Envers with a PrimitiveType

2012-04-04 Thread Roger Kratz
<< Couldn't the datetime be used for that? >> Depending on the precision on the db column you might end up with two identical datetimes. << Surely people think in terms of Revisions and revision ranges, not revision numbers?>> Yes, the revision id has no real business value. It's a primary ke

SV: [nhusers] Envers with a PrimitiveType

2012-04-03 Thread Roger Kratz
When having a custom revision entity, the schema generated is outside the control of envers so to speak. Simple NH Core mapping. So something seems strange here... <> Please do. Thanks. Roger Från: nhusers@googlegroups.com [nhusers@googlegroups.com] för Patric

SV: [nhusers] Batch inserting derived types

2012-04-03 Thread Roger Kratz
Try another inheritance strategy. IIRC - table per subclass defeats batching. Från: nhusers@googlegroups.com [nhusers@googlegroups.com] för Tencntraze [tencntr...@gmail.com] Skickat: den 3 april 2012 22:28 Till: nhusers@googlegroups.com Ämne: [nhusers] Batch inser

RE: [nhusers] Mock an EntityEntry

2012-04-03 Thread Roger Kratz
IMHO, I would prefer writing integration tests for this kind of logic. From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Luis Custodio Sent: den 2 april 2012 21:56 To: nhusers@googlegroups.com Subject: [nhusers] Mock an EntityEntry Hey, this is my question here, so b

SV: [nhusers] Envers with a PrimitiveType

2012-04-01 Thread Roger Kratz
What's you mapping for EnversRevisionEntity? Från: nhusers@googlegroups.com [nhusers@googlegroups.com] för Patrick [rpmcna...@gmail.com] Skickat: den 31 mars 2012 01:42 Till: nhusers@googlegroups.com Ämne: Re: [nhusers] Envers with a PrimitiveType I'll try and ex

SV: [nhusers] Re: Envers with a PrimitiveType

2012-04-01 Thread Roger Kratz
<> No, not currently. It must be some sort of number because it's used in some queries (eg "<=", "max", "between"). <> Hmm... It _should_ be, but I'm not sure it is. If it isn't, please JIRA this. Från: nhusers@googlegroups.com [nhusers@googlegroups.com

SV: [nhusers] Envers with a PrimitiveType

2012-03-30 Thread Roger Kratz
I'm not really sure I understand your problem but... It's mandatory that the revision entity has a revision number and a revision timestamp. However, you can rename it to whatever you want though (both in domain model and in db schema). It seems you're using attribute configuration? In that cas

RE: [nhusers] Envers with a PrimitiveType

2012-03-22 Thread Roger Kratz
<< I'm treating it as a collection of value types (no Id) which I think is what section 9.1 of the documentation says is not supported. Am I understanding that correctly? >> Yes, it's not currently supported I'm afraid. To be honest, don't really know what happens in your scenario (a collectio

RE: [nhusers] Envers with a PrimitiveType

2012-03-22 Thread Roger Kratz
<< Would you be willing to accept a small custom test project?>> I really would prefer an unit test. A good starting point is to copy/paste a custom user type test already in envers code base - they are here https://bitbucket.org/RogerKratz/nhibernate.envers/src/d9c03ac1dbd0/Src/NHibernate.Envers

SV: [nhusers] Envers with a PrimitiveType

2012-03-21 Thread Roger Kratz
Custom user types is suppose to work just fine with Envers. Can you send a failing test (using hbm mapping) here please? https://nhibernate.jira.com/browse/NHE Från: nhusers@googlegroups.com [nhusers@googlegroups.com] för Patrick [rpmcna...@gmail.com] Skickat: d

RE: [nhusers] Re: Data versioning

2012-03-21 Thread Roger Kratz
You can download docs here http://sourceforge.net/projects/nhcontrib/files/NHibernate.Envers/ There's a guy who has written a series of blog posts here http://www.primordialcode.com/blog/post/nhibernate-envers-quick-introduction There's plenty of information on the net, primarily for (Java) Hiber

RE: [nhusers] Re: Data versioning

2012-03-20 Thread Roger Kratz
Yes. -Original Message- From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Peter Morris Sent: den 20 mars 2012 12:26 To: nhusers Subject: [nhusers] Re: Data versioning Hi Roger > NHibernate Envers might be what you're looking for. However - there > the audit

SV: [nhusers] Data versioning

2012-03-19 Thread Roger Kratz
NHibernate Envers might be what you're looking for. However - there the audit data will be put in seperate tables. https://bitbucket.org/RogerKratz/nhibernate.envers Från: nhusers@googlegroups.com [nhusers@googlegroups.com] för Peter Morris [mrpmor...@gma

[nhusers] NH Envers 1.1 CR1 released!

2012-03-12 Thread Roger Kratz
Hi NHibernate Envers 1.1 CR1 targeting NH 3.3 CR1 was released today! It contains... * Lots of bug fixes * Tracking Entity Names. Ported from Hibernate Envers (http://lukaszantoniak.wordpress.com/2011/07/02/hhh-5580/). Read more about this in NHibernate Envers docs. *

RE: [nhusers] Is it possible for NHibernate Envers to load all fields for a revesioned entity when only a subset of them are being audited?

2012-01-23 Thread Roger Kratz
<<2. Store all fields in the audit table, but trigger an audit trail only when a subset of fields change.>> When you configure what to audit, audit all props of the entity. To define what should trigger a new audit record, inherit AuditEnversListener and override OnPostInsert, OnPostUpdate, OnPo

SV: [nhusers] NHibernate Envers Support Many to Any Mapping

2012-01-22 Thread Roger Kratz
Please report it with a failing test here https://nhibernate.jira.com/browse/NHE Från: nhusers@googlegroups.com [nhusers@googlegroups.com] för saltcode [apat...@gmail.com] Skickat: den 22 januari 2012 10:42 Till: nhusers Ämne: [nhusers] NHibernate Envers

RE: [nhusers] Version does not increment when updating child item

2011-11-29 Thread Roger Kratz
<> No, you're not. Coarse grained locks, http://martinfowler.com/eaaCatalog/coarseGrainedLock.html, is not supported out-of-the-box in NH - you'll have to build your own (probably using an interceptor or event listeners). There are some examples, here is one... http://ayende.com/blog/4055/nhi

  1   2   3   4   >