Package io.micronaut.data.model
Class PersistentEntityUtils
java.lang.Object
io.micronaut.data.model.PersistentEntityUtils
Persistent entity utils.
- Since:
- 3.5.0
- Author:
- Denis Stepanov
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidtraversePersistentProperties(PersistentEntity persistentEntity, boolean includeIdentity, boolean includeVersion, BiConsumer<List<Association>, PersistentProperty> consumer) Traverses properties that should be persisted.static voidtraversePersistentProperties(PersistentEntity persistentEntity, BiConsumer<List<Association>, PersistentProperty> consumer) Traverses properties that should be persisted.static voidtraversePersistentProperties(PersistentProperty property, BiConsumer<List<Association>, PersistentProperty> consumer) Traverses properties that should be persisted.static voidtraversePersistentProperties(List<Association> associations, PersistentProperty property, BiConsumer<List<Association>, PersistentProperty> consumerProperty) 
- 
Method Details- 
traversePersistentPropertiespublic static void traversePersistentProperties(PersistentProperty property, BiConsumer<List<Association>, PersistentProperty> consumer) Traverses properties that should be persisted.- Parameters:
- property- The property to start traversing from
- consumer- The function to invoke on every property
 
- 
traversePersistentPropertiespublic static void traversePersistentProperties(PersistentEntity persistentEntity, BiConsumer<List<Association>, PersistentProperty> consumer) Traverses properties that should be persisted.- Parameters:
- persistentEntity- The persistent entity
- consumer- The function to invoke on every property
 
- 
traversePersistentPropertiespublic static void traversePersistentProperties(PersistentEntity persistentEntity, boolean includeIdentity, boolean includeVersion, BiConsumer<List<Association>, PersistentProperty> consumer) Traverses properties that should be persisted.- Parameters:
- persistentEntity- The persistent entity
- includeIdentity- Should be identifier included
- includeVersion- Should be version included
- consumer- The function to invoke on every property
 
- 
traversePersistentPropertiespublic static void traversePersistentProperties(List<Association> associations, PersistentProperty property, BiConsumer<List<Association>, PersistentProperty> consumerProperty) 
 
-