Class NullCollectionEvent
java.lang.Object
io.hypersistence.optimizer.core.event.AbstractEvent
io.hypersistence.optimizer.hibernate.event.mapping.EntityMappingEvent
io.hypersistence.optimizer.hibernate.event.mapping.EntityAttributeMappingEvent
io.hypersistence.optimizer.hibernate.event.mapping.association.NullCollectionEvent
- All Implemented Interfaces:
Event,Serializable
The
NullCollectionEvent indicates that the default value of an entity collection attribute
is null.
An empty collection means that no child record is associated,
hence collections are better off initialized when the entity object is created,
to avoid unnecessary null checks.- Since:
- 2.1.0
- Author:
- Vlad Mihalcea
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.hypersistence.optimizer.core.event.Event
Event.Priority -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.hypersistence.optimizer.hibernate.event.mapping.EntityAttributeMappingEvent
getEntityAttributeMethods inherited from class io.hypersistence.optimizer.hibernate.event.mapping.EntityMappingEvent
getEntityClass, getEntityNameMethods inherited from class io.hypersistence.optimizer.core.event.AbstractEvent
getInfoUrl
-
Constructor Details
-
NullCollectionEvent
-
-
Method Details
-
getPriority
Get theEvent.Priorityof thisEvent- Returns:
- the
Event.Priorityof thisEvent
-
getDescription
-