Hello,
I'm not sure why you are trying to join fetch x.shoppingCardPositions - count(x) will only return data not entities, so the join fetch should not be used. The problem though is you have a spelling difference on the accessor methods from the property shoppingCardPositions where as the getters/setters are getShoppingCartPositions. Because you have annotated the methods, the attibute name used will be shoppingCartPositions - which is why it doesn't recognize shoppingCardPositions.
Best Regards,
Chris
[Message sent by forum member 'chris_delahunt' (chris_delahunt)]
http://forums.java.net/jive/thread.jspa?messageID=229350