I had the problem posted here:
http://forum.hibernate.org/viewtopic.php?t=974246
(excessive fetching, even when using HQL)
Which led me to the solution posted here:
http://www.hibernate.org/162.html
(specify constrained relations on one-to-one mappings)
I want to try the solution mentioned, which is along the lines of...
<one-to-one constrained="true" outer-join="false" class="Foo"/>
...but I am using annotations and cannot find the annotations equivalent of the XML node above (specifically, the "constrained" part). I've Googled this and not found anything; the big Manning book doesn't say much about it, either. I peeked at the Annotations API but quickly got lost. Can anyone tell me, how do I specify a one-to-one constrained relationship in Hibernate Annotations?