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
ModifierConstructorDescriptionprotected
AbstractPersistentEntity
(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 String
io.micronaut.core.annotation.AnnotationMetadata
@NonNull NamingStrategy
Obtain the naming strategy for the entity.@NonNull String
The persisted name is the fully qualified name including potential schema definitions.int
hashCode()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
Methods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
Methods inherited from interface io.micronaut.data.model.PersistentEntity
getAssociations, 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
-
AbstractPersistentEntity
protected AbstractPersistentEntity(io.micronaut.core.annotation.AnnotationMetadataProvider annotationMetadataProvider) Default constructor.- Parameters:
annotationMetadataProvider
- The annotation metadata provider.
-
-
Method Details
-
getAliasName
- Specified by:
getAliasName
in interfacePersistentEntity
- Returns:
- A name to use when referring to this element via an alias.
-
getAnnotationMetadata
public io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()- Specified by:
getAnnotationMetadata
in interfaceio.micronaut.core.annotation.AnnotationMetadataProvider
-
getNamingStrategy
Obtain the naming strategy for the entity.- Specified by:
getNamingStrategy
in interfacePersistentEntity
- Returns:
- The naming strategy
-
findNamingStrategy
Description copied from interface:PersistentEntity
Find the naming strategy that is defined for the entity.- Specified by:
findNamingStrategy
in interfacePersistentEntity
- Returns:
- The optional naming strategy
-
getPersistedName
Description copied from interface:PersistentElement
The persisted name is the fully qualified name including potential schema definitions.- Specified by:
getPersistedName
in interfacePersistentElement
- Returns:
- The persisted name.
-
equals
-
hashCode
public int hashCode()
-