ActiveRecord Mapping

Posted by Diego Dias on Stack Overflow See other posts from Stack Overflow or by Diego Dias
Published on 2010-04-13T15:11:12Z Indexed on 2010/04/13 15:12 UTC
Read the original article Hit count: 367

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about activerecord

Related posts about nhibernate