日期:2014-05-20  浏览次数:20640 次

大家看看这个hql语句
Hibernate: 
  select
  record0_.id as id1_,
  record0_.cardId as cardId1_,
  record0_.inHouse as inHouse1_,
  record0_.rDate as rDate1_
  from
  Record record0_
Hibernate: 
  select
  card0_.id as id0_0_,
  card0_.cardId as cardId0_0_,
  card0_.inHouse as inHouse0_0_ 
  from
  Card card0_ 
  where
  card0_.id=?

这是控制台发出的 为什么后来的那个没有 选择rDate的语句呢?

------解决方案--------------------
两张不同的表了,查询怎么相同了。贴代码
------解决方案--------------------
对啊,表都不同,你检查看一下xml配置里面是怎么写的