javax.el.PropertyNotFoundException: Property 'foo' not found on type com.example.Bean

前端 未结 6 2042
-上瘾入骨i
-上瘾入骨i 2020-11-21 23:37

I have results from

Query query = session.createQuery(\"From Pool as p left join fetch p.poolQuestion as s\");

query and I would like to di

6条回答
  •  孤独总比滥情好
    2020-11-22 00:33

    I believe the id accessors don't match the bean naming conventions and that's why the exception is thrown. They should be as follows:

    public Integer getId() { return id; }    
    public void setId(Integer i){ id= i; }
    

提交回复
热议问题