-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test for entity with lazy property #15
base: master
Are you sure you want to change the base?
Add test for entity with lazy property #15
Conversation
Can you paste the exception/stack trace here please? |
Message: NHibernate.PropertyValueException : Error dehydrating property value for NHibernate.Envers.Tests.NetSpecific.Integration.Lazy.EntityWithLazyProp_AUD.LazyProp |
at NHibernate.Persister.Entity.AbstractEntityPersister.Dehydrate(Object id, Object[] fields, Object rowId, Boolean[] includeProperty, Boolean[][] includeColumns, Int32 table, DbCommand statement, ISessionImplementor session, Int32 index) |
Do you mean that this test case worked in NHibernate + Envers before? Haven't looked closely but AFAIK, nothing regarding lazy props have changed recently. Could it be a change in NHib core that caused this maybe? |
Maybe @hazzik has some input if this is a known bug or breaking change in later versions of nhib core? |
Do you have any news? |
No, I don't know. Lazy properties are handled just like normal properties in Envers. Let's say you have an entity with this property... ...the audited entity that Envers creates behind the scenes have this corresponding property... Nothing regarding this has been changed recently AFAIK. Guess the problem occurs when "moving" data from normal entity's lazy property to audited entity's non lazy property. But that's just a guess, cannot reproduce it. |
Is it ok if I get ProxyForFieldInterceptor using NHib core, as it is in screenshot? |
I'm not sure what the problem is but I believe the behavior you see is due to nhibernate/nhibernate-core#1709. |
I get an error after updating NHibernate from 5.1.3 to 5.2.5
This error is during changes not lazy property in another session