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 Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractPersistentEntity(io.micronaut.core.annotation.AnnotationMetadataProvider annotationMetadataProvider) Default constructor. -
Method Summary
Modifier 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.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclaredMethods inherited from interface io.micronaut.data.model.PersistentEntity
getAssociations, getCompositeIdentity, getDecapitalizedName, getEmbedded, getIdentity, getIdentityByName, getIdentityProperties, getName, getParentEntity, getPath, getPersistentProperties, getPersistentPropertyNames, getPropertyByName, getPropertyByPath, getPropertyPath, getPropertyPath, getRootEntity, getSimpleName, getVersion, hasCompositeIdentity, hasIdentity, isEmbeddable, isOwningEntity, isRoot, isVersioned
-
Constructor Details
-
AbstractPersistentEntity
protected AbstractPersistentEntity(io.micronaut.core.annotation.AnnotationMetadataProvider annotationMetadataProvider) Default constructor.- Parameters:
annotationMetadataProvider- The annotation metadata provider.
-
-
Method Details
-
logDebug
Log error message.- Parameters:
message- The messagee- The exception
-
getAliasName
- Specified by:
getAliasNamein interfacePersistentEntity- Returns:
- A name to use when referring to this element via an alias.
-
getAnnotationMetadata
public io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()- Specified by:
getAnnotationMetadatain interfaceio.micronaut.core.annotation.AnnotationMetadataProvider
-
getNamingStrategy
Obtain the naming strategy for the entity.- Specified by:
getNamingStrategyin interfacePersistentEntity- Returns:
- The naming strategy
-
findNamingStrategy
Description copied from interface:PersistentEntityFind the naming strategy that is defined for the entity.- Specified by:
findNamingStrategyin interfacePersistentEntity- Returns:
- The optional naming strategy
-
getPersistedName
Description copied from interface:PersistentElementThe persisted name is the fully qualified name including potential schema definitions.- Specified by:
getPersistedNamein interfacePersistentElement- Returns:
- The persisted name.
-
equals
-
hashCode
public int hashCode()
-