Outer Join « Association « JPA Q&A





1. question one-to-one association and outer join result    forum.hibernate.org

Hello, I'm new to hibernate and there's a behavior I don't undersand: I have 2 tables linked by a one-to-one association. For a test purpose, I do a hql query in a servlet to select on record from the parent table. In the child table, there is no correspondant record for the particular parent table record. So the sql query generated ...

2. Error in outer join: association or configuration error    forum.hibernate.org

Why didn't you add the fllowing code snippet in the Cat.hbm.xml and Cat.java? public class Cat { private HashSet mices=new HashSet(); .... public Set getMices(){ return mices; } public void setMices(Set mices){ this.mices=mices; } .... } Cat.hbm.xml

4. Are left outer joins supported where no association exists?    forum.hibernate.org

Author Message tima Post subject: Are left outer joins supported where no association exists? Posted: Sat Dec 02, 2006 4:56 am Newbie Joined: Wed Oct 04, 2006 2:47 am Posts: 12 I'd like to replicate the following SQL in HQL: Code: select patient.name, customer.name from test_acts act left outer join test_participations ppatient on act.act_id=ppatient.act_id and ppatient.type='patient' left outer join ...

5. Outer join without association    forum.hibernate.org

Hi, I was wondering if it is possible to make an outer-join without defining any association in my mapping. The issue we have is that most of the association we need are dynamical. So we do not want to hard code them in a mapping file . (there would be too many) here is an example of what we want to ...

6. outer-join on associations    forum.hibernate.org

Hi, I've been playing around with associations, fetch modes and outer-join options. I'm using Hibernate 3.2.6 It seems to me that my options are getting ignored. Can someone enlighten as to how I can leverage these options ? Here is my usecase: Code: ...