And my problem is : When i make a simple request like : public Vector getCustomer(int max_result,int deb_result) { Session session = HibernateUtil.currentSession(); Transaction tx = session.beginTransaction(); Query q = session.createQuery("select customer from Customer"); q.setMaxResults(max_result); q.setFirstResult(deb_result); List result = q.list(); //tx.commit(); Vector v = new Vector(result.size()); v.addAll(result); return v; }
AND no reference (at all !!!) to the class Story
When I see the SQL log I can see query like : select ... from Customer where ... select ... from Story where ... select ... from Story where ... select ... from Story where ... select ... from Story where ... ...
So my question/problem is : WHY hibernate make request to the Story objet ??? I have set lazy to true and NO reference to the object !!!
I have read a lot of documentation and I have found no answer. So please help me !!! _________________ HuGuEs