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 by hibernate returns correctly a classic outer join with one record from the parent table outer joined with a null record from the child table. This is ok.
But what I don't understand is that in my java servlet that does the query, I got the following message "No row with the given identifier exists: xxx, of class: child table"
But the hql query I made in the servlet, concerns just the parent table, but because of the one-to-one association, hibernate generates the outer join with the child table.
So why does the java resultset not return a row whereas the sql outer joint returns well a record ?
I hope I'm clear !!!
Olivier Steinberg
Thank's for help.
|