Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
NHibernate-HQL和深度内连接_Nhibernate_Join_Hql_Depth - Fatal编程技术网

NHibernate-HQL和深度内连接

NHibernate-HQL和深度内连接,nhibernate,join,hql,depth,Nhibernate,Join,Hql,Depth,我想知道gallaxies的行星上有“间谍”类型的卫星和人类物种 我很难写出多个不同深度的内部连接 以下是我的一个尝试: select gal from Galaxy gal inner join gal.PlanetList planets inner join planets.SattelitesList satts, planets inner join planets.SpeciesList spec where spec.Name = 'Human' AND satts.Type =

我想知道gallaxies的行星上有“间谍”类型的卫星和人类物种

我很难写出多个不同深度的内部连接

以下是我的一个尝试:

select gal from Galaxy gal inner join gal.PlanetList planets
inner join planets.SattelitesList satts,
planets inner join planets.SpeciesList spec 
where spec.Name = 'Human' AND satts.Type = 'Spy'
我知道这是可行的,但它只有一个深度分支(就像二叉树的一个分支):


谢谢

不是这样工作的吗

from
  gal from Galaxy gal 
  join gal.PlanetList planets
  join planets.SattelitesList satts
  join planets.SpeciesList spec 
where spec.Name = 'Human' AND satts.Type = 'Spy'

不是这样工作的吗

from
  gal from Galaxy gal 
  join gal.PlanetList planets
  join planets.SattelitesList satts
  join planets.SpeciesList spec 
where spec.Name = 'Human' AND satts.Type = 'Spy'