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
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
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
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
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
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
<>
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
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
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
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
<< 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
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
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
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
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
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
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
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.
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
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: [
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]
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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,
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
<>
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
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
<< 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
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.
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
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
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:
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
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
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
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.
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
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
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
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
<< 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.
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
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
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
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
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
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
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
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
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
-
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
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
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
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
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
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
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
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
<< 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
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
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
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
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
<>
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
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
<< 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
<< 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
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
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
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
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
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.
*
<<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
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
<>
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 - 100 of 335 matches
Mail list logo