/*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
posted @ 2009-01-20 12:02 Dacey Views(119) Comments(0) Diggs(0) Edit
hibernate多对一的查询也只是把数据库中所对应的外键查出来。而不是把外键对应所有信息查出来。所以当关闭session后去get一方的实体只会得到外键id Read More
posted @ 2008-09-08 11:44 Dacey Views(535) Comments(0) Diggs(0) Edit