[jboss-user] [JBoss Seam] - Re: entity-query : resultCount problem with join fetch

csweeney do-not-reply at jboss.com
Wed Jun 27 15:29:27 EDT 2007


We have encountered the same/similar error. As a work around I added:

  | 	@Transactional
  | 	@Override
  | 	public Long getResultCount()
  | 	{
  | 		Long fromInt = new Long(this.getResultList().size());
  | 		return fromInt;
  | 	}
  | 

Not the 'correct' solution, but it appears to work. Has a JIRA issue been opened?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058388#4058388

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058388



More information about the jboss-user mailing list