I have reduced the return value of beans from x4 to x2... Help me to get rid of 
the last one that is coming twice...

I now get the entity bean (User) and return its collection of beans (called 
guests).

Query:
from nu.hjemme.ejb.entity.User as u 
inner join fetch u.guests 
where u.userName = :userName 

When I have the user, I return its collection (user.getGuests()). By doing this 
the returned number is (guests)x2 (???) and I also lost the order by sequence 
but when returning an collection from an instance of another bean, they are 
returned in the order they where created so I don't need it... But why do they 
come twice?

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

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


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to