Skip to content
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

NH-2829 - QueryOver/Criteria should throw exception when querying against unmapped class #1095

Closed
nhibernate-bot opened this issue Oct 12, 2017 · 0 comments · Fixed by #2487

Comments

@nhibernate-bot
Copy link
Collaborator

nhibernate-bot commented Oct 12, 2017

Shane Courtrille created an issue — 7th August 2011, 21:50:14:

var orders = Session.QueryOver<Order>().List();

Expected Result:

An exception should be thrown of type:

NHibernate.HibernateException : Unable to locate persister: NHPlayground.Domain.Entities.Order which would match the Session.Load<> behavior.

Actual Result:

A list is returned with a count of 0.


Adam Lith added a comment — 24th October 2013, 7:51:02:

Hi,

I have encountered the same behaviour.
Are there any plans of fixing this? =)

Regards,
Adam


Jan Verhaeghe added a comment — 27th January 2017, 14:35:59:

Any progress on this issue to report?

@hazzik hazzik added migrated and removed migrated labels Oct 13, 2017
@hazzik hazzik changed the title NH-2829 - QueryOver does not throw exception when querying against unmapped class. NH-2829 - QueryOver does not throw exception when querying against unmapped class Sep 7, 2020
@hazzik hazzik changed the title NH-2829 - QueryOver does not throw exception when querying against unmapped class NH-2829 - QueryOver/Criteria should throw exception when querying against unmapped class Sep 7, 2020
hazzik pushed a commit that referenced this issue Sep 7, 2020
@hazzik hazzik added this to the next minor milestone Sep 7, 2020
BenedekFarkas added a commit to OrchardCMS/Orchard that referenced this issue Dec 6, 2024
* Upgrading NHibernate to 5.5.2

* Adapting SchemaCommandGenerator to obsolete NHibernate code

* Adapting unit tests to NHibernate breaking change

nhibernate/nhibernate-core#1106
nhibernate/nhibernate-core#1095

* Updating ModuleRootWebConfig.txt codegen template according to the new Newtonsoft.Json and NHibernate version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants