ActiveRecord Mapping
- by Diego Dias
Good morning, guys.
I'm with a problem with the query that NHibernate generates. My mapping is like bellow:
public class Matricula
{
[BelongsTo("IdTurma", NotNull=True)]
public Turma {get;set;}
}
public class Turma
{
[BelongsTo("IdCurso", NotNull=True)]
public Curso {get;set;}
}
public class Curso
{
[PrimaryKey("IdCurso", Generator=PrimaryKeyType.Identity)]
public int IdCurso{get;set;}
}
The problem is: The Nh generates the query with left where should be inner. Between Matricula and Turma they makes inner, but between Turma and Curso they makes left outer. What's problem? What's wrong?