I am referring this link https://developer.jboss.org/wiki/SomeExplanationsOnLazyLoadingone-to-one to understand why lazy loading doesn't work with one to one
but works with one to many
.
I don't understand why SET object is never null in case of one to many as said in the above link.Can someone please explain?
I still don't understand why lazy loading works in one to many
but not in one to one
associations.Please explain.
The default fetch type of one to one relation is Eager, so to change this you have to annotate the field as