| can anyone suggest me why this query gives duplicate results, despite of being only one in the database
 public List<Bug> findAllBugs() {
 Session session = getHibernateTemplate().getSessionFactory()
 .getCurrentSession();
 String SQL_QUERY = "from Bug as bug inner join fetch bug.users         as users";
 log.info(SQL_QUERY);
 Query query = session.createQuery(SQL_QUERY);
 return query.list();
 }
 
 
 i have a 2 table named USERS and BUGS mapped as many to many, so the association table is BUG_USER
 +--------+---------+
 | BUG_ID | USER_ID
 +--------+---------+
 |      4    |       1      |
 |      4    |       2      |
 +--------+---------+
 
 here bug with id 4 is assigned to to users with id 1, and 2
 
 so is there any thing wrong in the query
 i m really sick with this......................
 
 
 |