本帖最后由 oYouandMe12 于 2013-06-27 11:13:18 编辑

解决方案 »

  1.   

     List<ComCusId> resutlt = em.createQuery("SELECT c FROM ComCusId c where  c.customerId.customerId=:customerId  order by c.rId asc").setParameter("customerId", customerId).getResultList();
      

  2.   

    你先把你这句SQL转换后放入单独拿去执行一次,你看看你都得到了些什么东西  答案就来了
      

  3.   

    你这种东西  其实debug一下   什么都知道了
      

  4.   

     c.customerId.customerId   名字也不要取这么牛把  id.id