Package io.micronaut.data.model
Class AbstractPersistentEntity
java.lang.Object
io.micronaut.data.model.AbstractPersistentEntity
- All Implemented Interfaces:
- io.micronaut.core.annotation.AnnotationMetadataProvider,- io.micronaut.core.annotation.AnnotationSource,- io.micronaut.core.naming.Named,- PersistentElement,- PersistentEntity
- Direct Known Subclasses:
- RuntimePersistentEntity,- SourcePersistentEntity
Abstract version of the 
PersistentEntity interface.- Since:
- 1.0.0
- Author:
- graemerocher
- 
Field SummaryFields inherited from interface io.micronaut.core.annotation.AnnotationSourceEMPTY
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractPersistentEntity(io.micronaut.core.annotation.AnnotationMetadataProvider annotationMetadataProvider) Default constructor.
- 
Method SummaryModifier and TypeMethodDescriptionboolean@NonNull Optional<NamingStrategy>Find the naming strategy that is defined for the entity.@NonNull Stringio.micronaut.core.annotation.AnnotationMetadata@NonNull NamingStrategyObtain the naming strategy for the entity.@NonNull StringThe persisted name is the fully qualified name including potential schema definitions.inthashCode()protected voidLog error message.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProviderfindAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.AnnotationSourcegetAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclaredMethods inherited from interface io.micronaut.data.model.PersistentEntitygetAssociations, getCompositeIdentity, getDecapitalizedName, getEmbedded, getIdentity, getIdentityByName, getName, getParentEntity, getPath, getPersistentProperties, getPersistentPropertyNames, getPropertyByName, getPropertyByPath, getPropertyPath, getPropertyPath, getRootEntity, getSimpleName, getVersion, hasCompositeIdentity, hasIdentity, isEmbeddable, isOwningEntity, isRoot, isVersioned
- 
Constructor Details- 
AbstractPersistentEntityprotected AbstractPersistentEntity(io.micronaut.core.annotation.AnnotationMetadataProvider annotationMetadataProvider) Default constructor.- Parameters:
- annotationMetadataProvider- The annotation metadata provider.
 
 
- 
- 
Method Details- 
logDebugLog error message.- Parameters:
- message- The message
- e- The exception
 
- 
getAliasName- Specified by:
- getAliasNamein interface- PersistentEntity
- Returns:
- A name to use when referring to this element via an alias.
 
- 
getAnnotationMetadatapublic io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()- Specified by:
- getAnnotationMetadatain interface- io.micronaut.core.annotation.AnnotationMetadataProvider
 
- 
getNamingStrategyObtain the naming strategy for the entity.- Specified by:
- getNamingStrategyin interface- PersistentEntity
- Returns:
- The naming strategy
 
- 
findNamingStrategyDescription copied from interface:PersistentEntityFind the naming strategy that is defined for the entity.- Specified by:
- findNamingStrategyin interface- PersistentEntity
- Returns:
- The optional naming strategy
 
- 
getPersistedNameDescription copied from interface:PersistentElementThe persisted name is the fully qualified name including potential schema definitions.- Specified by:
- getPersistedNamein interface- PersistentElement
- Returns:
- The persisted name.
 
- 
equals
- 
hashCodepublic int hashCode()
 
-