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

@Internal public abstract class AbstractPersistentEntity extends Object implements PersistentEntity
Abstract version of the PersistentEntity interface.
Since:
1.0.0
Author:
graemerocher
  • Constructor Details

    • AbstractPersistentEntity

      protected AbstractPersistentEntity(io.micronaut.core.annotation.AnnotationMetadataProvider annotationMetadataProvider)
      Default constructor.
      Parameters:
      annotationMetadataProvider - The annotation metadata provider.
  • Method Details

    • logDebug

      protected void logDebug(String message, Exception e)
      Log error message.
      Parameters:
      message - The message
      e - The exception
    • getAliasName

      @NonNull public @NonNull String getAliasName()
      Specified by:
      getAliasName in interface PersistentEntity
      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 interface io.micronaut.core.annotation.AnnotationMetadataProvider
    • getNamingStrategy

      @NonNull public @NonNull NamingStrategy getNamingStrategy()
      Obtain the naming strategy for the entity.
      Specified by:
      getNamingStrategy in interface PersistentEntity
      Returns:
      The naming strategy
    • findNamingStrategy

      @NonNull public @NonNull Optional<NamingStrategy> findNamingStrategy()
      Description copied from interface: PersistentEntity
      Find the naming strategy that is defined for the entity.
      Specified by:
      findNamingStrategy in interface PersistentEntity
      Returns:
      The optional naming strategy
    • getPersistedName

      @NonNull public @NonNull String getPersistedName()
      Description copied from interface: PersistentElement
      The persisted name is the fully qualified name including potential schema definitions.
      Specified by:
      getPersistedName in interface PersistentElement
      Returns:
      The persisted name.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object