/*SELECT s.id,s.name,s.tid,t.typename,c.counts,c.time into #abc FROM foods as s INNER JOIN foodtype as t ON s.tid = t.id INNER JOIN foodcount as c ON s.id=c.fid*/ drop table #abc declare @sql varc... Read More
hibernate多对一的查询也只是把数据库中所对应的外键查出来。而不是把外键对应所有信息查出来。所以当关闭session后去get一方的实体只会得到外键id Read More