I have been struggling with a Hibernate/JPA issue in my application. I am running Wildfly 8.1 and have not done a good job of regression testing as I have continually upgraded from Wildfly 8.0 while continuing my intermittent development efforts. I am concerned that the following two log statements produce different sizes/counts:
Code:
log.infof("participants' %s", em.createQuery("SELECT u FROM Elimination e JOIN e.participants u WHERE e.battleId = 2", User.class).getResultList().size());
log.infof("participants' %s", em.createQuery("SELECT e FROM Elimination e WHERE e.battleId = 2", Elimination.class).getSingleResult().getParticipants().size());
I will appreciate any comments/questions/suggestions here...