public class OneToOneParentSideEvent extends EntityAttributeMappingEvent
OneToOneParentSideEvent indicates that an entity attribute is mapped
as a parent-side OneToOne association and, without
enabling bytecode enhancement and LazyToOneOption.NO_PROXY or setting the OneToOne.optional() attribute
to the value of true, therefore, the association is always going to be fetched eagerly.
Not that the OneToOne.optional() optimization doesn't work for Hibernate ORM 5.2
or older versions.Event.Priority| Constructor and Description |
|---|
OneToOneParentSideEvent(Class entityClass,
String entityAttribute,
boolean enhancedForLazyLoading,
boolean lazyToOneNoProxy) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
|
Event.Priority |
getPriority()
Get the
Event.Priority of this Event |
boolean |
isEnhancedForLazyLoading()
Check if bytecode enhancement lazy loading is enabled.
|
boolean |
isLazyToOneNoProxy()
Check if
@LazyToOneOption.NO_PROXY is set. |
getEntityAttributegetEntityClass, getEntityNamegetInfoUrlpublic boolean isEnhancedForLazyLoading()
public boolean isLazyToOneNoProxy()
@LazyToOneOption.NO_PROXY is set.@LazyToOneOption.NO_PROXY is setpublic Event.Priority getPriority()
Event.Priority of this EventEvent.Priority of this EventCopyright © 2026. All rights reserved.