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(Class<E> entityType, Class<ID> idType, EntityMetamodel<E> entityMetamodel, 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