| There dosn't seem to be anything wrong with the way the classes are bytecode enhanced. There is a field for the lazy interceptor on the embeddable class, and all the hooks are in place. What seems to be going on in here is the way the entity is handled in hibernate, namely in SingleTableEntityPersister and ComponentType. The support for lazy properties in embedded entities seems to missing in this classes. Right now, the defeniton of the lazyProperty* variables in the constructor of AbstractEntityPersister does not take into account ComponentType. Even if it did, ComponentType does not cary enouth information on the 'lazyness' of the attributes. I've came up with a test case: https://github.com/barreiro/hibernate-orm/commits/HHH-10480 |