Initially I had an entity with a basic property marked as lazy (didn't work at first, fixed in HHH-5255). The another entity was necessary, so I moved some common fields into an embeddable entity, but now the lazy basic property is loaded eagerly.
public class Entity {
@Basic(fetch = FetchType.LAZY)
private String description;
@Embedded
private RecordData data;
}
@Embeddable
public class RecordData {
@Basic(fetch = FetchType.LAZY)
@Lob
private byte[] content;
}
|