在查询数量时,要将join fetch改成join。
http://my.oschina.net/guhai2004/blog/170128
http://stackoverflow.com/questions/12459779/query-specified-join-fetching-but-the-owner-of-the-fetched-association-was-not
在查询数量时,要将join fetch改成join。
http://my.oschina.net/guhai2004/blog/170128
http://stackoverflow.com/questions/12459779/query-specified-join-fetching-but-the-owner-of-the-fetched-association-was-not