-
Notifications
You must be signed in to change notification settings - Fork 934
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
Set which entities classes should never be cached, even indirectly #2744
Conversation
In case other NHibernate members will also approve it, it will be most likely included in the next minor release. |
@fredericDelaporte @hazzik @bahusoid @gliljas could you please review these feature? |
@maca88 no members other than you paid attention to this pr? How can we continue? Is it normal procedure? |
I’ve paid attention, but I don’t have enough expertise to properly review that fast. It would take longer for me to do proper review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with this PR overall. Some minor adjustments are needed.
Any updates on this issue, how can I help? |
…or each collection
… default true it could be disabled via query.throw_never_cached option
Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Action/BulkOperationCleanupAction.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Action/BulkOperationCleanupAction.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Engine/ISessionFactoryImplementor.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Loader/Custom/CustomLoader.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Impl/SessionFactoryImpl.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Impl/SessionFactoryImpl.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Action/BulkOperationCleanupAction.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Loader/Custom/CustomLoader.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Loader/Custom/CustomLoader.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Loader/Loader.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Loader/Loader.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Action/BulkOperationCleanupAction.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Action/BulkOperationCleanupAction.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Action/CollectionAction.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Action/EntityAction.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Action/ICacheableExecutable.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Cache/CacheFactory.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Cfg/Environment.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Cfg/MappingSchema/Hbm.generated.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Engine/ActionQueue.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Hql/Ast/ANTLR/Tree/DotNode.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Hql/Ast/ANTLR/Tree/DotNode.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Hql/Ast/ANTLR/Tree/DotNode.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Loader/Custom/CustomLoader.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com> Update src/NHibernate/Loader/Custom/CustomLoader.cs Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com>
Squashed some commits and rebased. |
And regenerate the Hbm file.
[System.CodeDom.Compiler.GeneratedCodeAttribute("HbmXsd", "5.0.0-Alpha1")] | ||
[System.CodeDom.Compiler.GeneratedCodeAttribute("HbmXsd", "5.4.0-dev")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Granted, regenerating it is a bit noisy.
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But it does still avoid introducing formatting discrepancies which would could other noises on subsequent regeneration.
|
||
/// <remarks/> | ||
[System.Xml.Serialization.XmlEnumAttribute("never")] | ||
Never, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here the "by hand" writing of the code was also lacking the (almost) empty blank line. (I write "almost" because the generator does put spaces in it.)
We are going through a very busy time, I see mentions today sory for that @fredericDelaporte. |
There is no MyGet currently for FluentNHibernate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fredericDelaporte
I don't think you should wait for requested reviews unless it was self requested.
It's already been reviewed and approved by you and maca88. Seems quite enough for me. Plus I don't have much time - better spend it on some other issues
Hi,
When Second level cache enabled "never" cached entities should not interact with UpdateTimestampsCache(#2735), for backward compability as discussed here new Cache Strategy added.
After release I could implement FluentNHibernate