[hibernate-users] lazy loading fields in embeddable objects

Rajiv Poddar rajivkrpoddar at gmail.com
Tue Apr 21 09:23:58 EDT 2009


Hi,
 How to lazy load the fields in the Embeddable object. I am doing this:
@Entity
Class A{
...
@Embedded
private B b;
}

------------------
@Embedded
Class B{

@Basic(fetch=FetchType.LAZY)
@Column(...)
private String foo;

}

So here the field b in class A should be lazily loaded, but it's NOT.

What am I missing or doing wrong?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-users/attachments/20090421/d65355d7/attachment.html 


More information about the hibernate-users mailing list