[nhusers] Re: Enver oneToMany support

2020-05-05 Thread Roger
I guess you mean if querying onetomany associations is possible? No, currently it is not, only “traverserelation” using inner join is possible. Please report an issue on github. (Depending on what you want to do and how your model look like, a possible workaround might be to query the chil

[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

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
explain this better than me. Regards /Roger From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of ?? ?? Sent: den 21 oktober 2017 21:31 To: nhusers Subject: [nhusers] NH-3488 - Strongly typed Inserts, Updates and Deletes vs NHibernate Envers Have I any chance

RE: [nhusers] Envers global ICustomCollectionMapperFactory implementation?

2017-05-16 Thread Roger Kratz
NHibernate.SetForNet4 (before NH Core supported BCL’s ISet out of the box). /Roger From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of codekaizen Sent: den 16 maj 2017 01:55 To: nhusers Subject: [nhusers] Envers global ICustomCollectionMapperFactory implementation? We replace

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
ned on [NHE-138] - FluentConfiguration make setRevisionEntity public /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 email to nhusers+unsubscr...@googlegroups.com. To post to

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

[nhusers] Re: Nhibernate.Envers;access="none" not supported?

2015-10-26 Thread Roger
Might be a bug. Feel free to report a bug to the JIRA (https://nhibernate.jira.com/projects/NHE), preferably with a small, failing test. On Friday, October 16, 2015 at 12:59:26 PM UTC+2, PeSo wrote: > > Nobody else encountered this problem? > > Am Dienstag, 6. Oktober 2015 12:48:30 UTC+2 schrieb

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

2015-10-09 Thread Roger Kratz
e modify the schema whatever way you like. If you want explicit schema changes added to what’s normally produced by SchemaExport, you can use in your mapping. /Roger From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Matthias Kientz Sent: den 9 oktober 2015 11:08

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
folder there is Integration and UnitTests so place it under Integration please. 3. Please do. Regards Roger From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Devin Michael Sent: den 12 mars 2015 00:32 To: nhusers@googlegroups.com Subject: [nhusers] Re: Unable to cast

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

2015-03-11 Thread Roger
/CONTRIBUTING.md Some things differ but the principle is the same for Envers. ) /Roger On Wednesday, March 11, 2015 at 12:25:08 AM UTC+1, Devin Michael wrote: > > I think I might have solved the issue. On line 275 of the > AuditEventListener class there's the following line of co

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
know if there is a bug or not. May also be some attribute conf that needs to be converted to fluent. Please try to isolate your problem to a small test case (using envers repo) a create a pull request. Regards Roger From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of

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

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

2014-10-15 Thread Roger Kratz
NH Core bug. /Roger PS: You can use AuditEntity.RelatedId(“ParentObject”) in your query instead – nothing to do with your issue though. From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Johannes Aberidis Sent: den 15 oktober 2014 15:49 To: nhusers@googlegroups.

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
@googlegroups.com] On Behalf Of Atilla Ilhan KARTAL Sent: den 30 maj 2014 08:59 To: nhusers@googlegroups.com Subject: Re: [nhusers] Nhibernate Envers Multiple Database Auditing Dear Roger; Thanks for Reply. I am setting entity table catalog name with configuration at runtime. After settings re

Re: [nhusers] Nhibernate Envers Multiple Database Auditing

2014-05-28 Thread Roger Kratz
uld that work? What should decide this runtime decision? /Roger Original message >From Atilla İlhan KARTAL Date: 2014/05/28 15:26 (GMT+01:00) To nhusers@googlegroups.com Subject [nhusers] Nhibernate Envers Multiple Database Auditing Dear All; I am using multiple datab

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
h, by the way, I definatly prefer myself as well), please JIRA this. /Roger Från: nhusers@googlegroups.com [nhusers@googlegroups.com] för Guilherme Paschoal [guilhermepasch...@gmail.com] Skickat: den 20 februari 2014 17:59 Till: nhusers@googlegroups.com

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

2014-02-19 Thread Roger Kratz
do find the time to isolate your problem and it turns out it’s really a bug in Envers, please report it to the JIRA. Good luck! /Roger From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Guilherme Paschoal Sent: den 18 februari 2014 18:38 To: nhusers@googlegroups.com

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 i

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

2013-10-29 Thread Roger Kratz
If possible, please pull latest envers code from here https://bitbucket.org/RogerKratz/nhibernate.envers and create a small (nunit) test describing your issue. Thanks Roger From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Kristof Riebbels Sent: den 29 oktober 2013

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
jira.com/browse/NHE. /Roger Från: nhusers@googlegroups.com [nhusers@googlegroups.com] för Денис Подзюбан [podzyu...@gmail.com] Skickat: den 14 juni 2013 11:10 Till: nhusers@googlegroups.com Ämne: [nhusers] nhibernate envers lazy load collection hi. I have a proble

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
x27;. Envers I am new to NH too. And novice with Envers on NH, i am trying to make this work http://envers.bitbucket.org/ But i guess something wrong there. On Tuesday, March 26, 2013 3:24:23 AM UTC+5:30, Roger wrote: I don't know Fluent NH much but... Where do

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
NH 4. /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 email to nhusers+unsubscr...@googlegroups.com. To post to this group, send email to nhusers@google

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
't. You need to build this logic yourself by iterating the properties in the two versions. ) /Roger From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of ?? ?? Sent: den 24 februari 2013 09:57 To: nhusers@googlegroups.com Subject: [nhusers] NHibernate.Enve

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
(at least with SQL Server). However, if that's the only way then I suppose it's not really possible Thanks Wes On Thursday, January 17, 2013 6:13:26 PM UTC+2, Roger wrote: What do you mean by ”different database”? Another machine/installation or another catalog (or maybe another sc

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
t record; however, we do not want an audit record generated if only the Hours change. Is this possible? On Tuesday, December 18, 2012 4:10:46 PM UTC-5, Roger wrote: 1. What do you mean by "run time configuration"? You don't mean changing what properties to audit after the se

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
f you need some assistance. /Roger Från: nhusers@googlegroups.com [nhusers@googlegroups.com] för Pete Appleton [peteapple...@foretel.co.uk] Skickat: den 20 november 2012 19:32 Till: nhusers@googlegroups.com Ämne: RE: [nhusers] RE: Envers - custom IIdMapper imple

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
them round the wrong way when i was refactoring. I'm planning to do a blog post shortly on getting this set up with fluent nh today, I'll link from here when it's done to help others On Thursday, 15 November 2012 09:13:57 UTC, Roger wrote: I don't know fluent nh at all, but it

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
BEE3391"))) .Results(); Somewhere I think the mapping from ID to VersionNumber has gone wrong...? On Tuesday, 13 November 2012 14:23:49 UTC, Roger wrote: Use ForHistoryOf() Instead of ForRevisionsOf From: nhu...@googlegroups.com [mailto:nhu...@googlegroups.com] On

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

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/src/4fc1063281cf/Src/ReleaseNotes.txt Enjoy! /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 group, send email to nhusers+unsubscr...@google

[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 po

RE: [nhusers] Envers and Oracle

2012-06-04 Thread Roger Kratz
: Re: [nhusers] Envers and Oracle Hi Roger! I found out that the revision number starts at 2 when I run against Oracle! Changeing the FieldAccessTest.VerifyHistory to use revision 2 and 3 makes the first test pass. Best regards /Örjan -- You received this message because you are subscribed to the

RE: [nhusers] Envers and Oracle

2012-06-01 Thread Roger Kratz
juni 2012 15:07 To: nhusers@googlegroups.com Subject: Re: [nhusers] Envers and Oracle Hi Roger! I found out that the revision number starts at 2 when I run against Oracle! Changeing the FieldAccessTest.VerifyHistory to use revision 2 and 3 makes the first test pass. Best regards /Örjan -- You

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
users@googlegroups.com Ämne: Re: [nhusers] Envers and Oracle Thank you Roger and Oskar! I tried the revision Roger suggested and now the REVINFO table seems to be correctly generated in Oracle. I still get an NullReferenceException from my unit tests, but I have probably used Envers incorrectly. Stack

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
Can you please run all envers tests against an Oracle db and come back with the result? /Roger From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Örjan Fjällborg Sent: den 31 maj 2012 13:45 To: nhusers@googlegroups.com Subject: [nhusers] Envers and Oracle Hi ev

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). /Rog

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

2012-05-10 Thread Roger Kratz
bject: Re: [nhusers] Envers - Modify the generated audited entity before insert ? Hello Roger, Thanks for your response ! What we need to do, in this particular case, is to modifiy a revision entry. We are working with an Adress entity which has a period. When a modification occurs on this a

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
, look if X is fulfilled - if it is, call the base impl. If not, do nothing. Your AuditEventListener impl you pass into the IntegrationWithEnvers method. /Roger -Original Message- From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of vigj Sent: den 7 maj 2012 11:12

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
I'm not sure but... Maybe/Probably (using binding redirects). Från: nhusers@googlegroups.com [nhusers@googlegroups.com] för Greg [bor...@gmail.com] Skickat: den 9 april 2012 06:45 Till: nhusers Ämne: [nhusers] Re: NH Envers 1.1 CR1 released! Hi

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.co

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
T IDENTITY NOT NULL, -- why is this still here REVTSTMP DateTime null,-- and this one primary key (REV) -- and why isn't this Id ) I figure either the documentation is a little misleading or I'm doing something wrong. -Patrick On Friday, Marc

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
luent cfg... public class EnversRevisionEntity { public virtual long RevisionId {get;set;} public virtual DateTime TheTimeStamp {get;set;} } fluentCfg.SetRevisionEntity(e => e.RevisionId, e => e.TheTimeStamp, new EnversRevisionListener()); /Roger Från

RE: [nhusers] Envers with a PrimitiveType

2012-03-22 Thread Roger Kratz
what happens in your scenario (a collection of custom user types). Out of curiousity - don't you get a "nice" (hmm.. well...) exception saying this isn't supported? What is your stack trace? /Roger From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf

RE: [nhusers] Envers with a PrimitiveType

2012-03-22 Thread Roger Kratz
3ac1dbd0/Src/NHibernate.Envers.Tests/Integration/CustomType Simply add a new test in that folder and create a patch (or do a pull request on bitbucket). Thanks Roger From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of Patrick Sent: den 22 mars 2012 01:04 To: nhusers@googlegroups.com

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 >

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
) http://nuget.org/packages/NHibernate.Envers/1.1.0-CR1 Enjoy! /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 group, send email to nhuser

  1   2   3   4   >