One-to-one behavior #3282
Unanswered
Anastasia-Tre
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have query:
Nhibernate generates for the query sql:
When a query involves an operation with a field of an entity connected one-to-one, NHibernate generates SQL with a left outer join.
Why is a left outer join used? I think an inner join would be better in this case.
And if I rewrite query in this way:
The generated sql will be with inner join:
Here are my classes:
Here is the mapping:
Beta Was this translation helpful? Give feedback.
All reactions