Interface EntityIdResolverDefinition

All Known Implementing Classes:
AnnotatedEntityIdResolverDefinition, AnnotationBasedEntityIdResolverDefinition
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface EntityIdResolverDefinition
Definition describing how to create an EntityIdResolver for a given entity type and identifier type.

Used by annotation-based entities to resolve the entity identifier from the command.

Since:
5.0.0
Author:
Mitchell Herrijgers
  • Method Details

    • createIdResolver

      <E, ID> EntityIdResolver<ID> createIdResolver(@Nonnull Class<E> entityType, @Nonnull Class<ID> idType, @Nonnull AnnotatedEntityMetamodel<E> entityMetamodel, @Nonnull Configuration configuration)
      Creates an EntityIdResolver for the given entity type and identifier type.
      Type Parameters:
      E - The type of the entity for which the resolver is created.
      ID - The type of the identifier for which the resolver is created.
      Parameters:
      entityType - The type of the entity for which the resolver is created.
      idType - The type of the identifier for which the resolver is created.
      entityMetamodel - The metamodel of the entity.
      configuration - The configuration of the application, providing access to the components available.
      Returns:
      The EntityIdResolver for the given entity type and identifier type.