| Gail Badner, I don't know if this is actually a bug. Vlad talks about something like this on his blog:
While the unidirectional @OneToOne association can be fetched lazily, the parent-side of a bidirectional @OneToOne association is not. Even when specifying that the association is not optional and we have the FetchType.LAZY, the parent-side association behaves like a FetchType.EAGER relationship.
To be honest, I don't really understand that paragraph. If no one stops me from doing so (by confirming that this is indeed not a bug), I will try to provide a test case later this week. |