-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: 4.3.5 Issue with eagerly fetched Many-to-Many query
PostPosted: Sun Aug 03, 2014 1:12 pm 
Newbie

Joined: Sun Aug 03, 2014 12:51 pm
Posts: 1
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...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.