public <E,D>void addMappedEntityClass(Class<E> entityClass,Class<D> dtoClass,JpaMapper<E,D> mapper){
  checkNotInitialized();
  if (mappings.containsKey(dtoClass)) {
    throw new IllegalArgumentException(dtoClass.getName() + " is already registered");
  }
  mappings.put(dtoClass,new MappedRegistration<>(entityClass,dtoClass,mapper));
}

public < E , D > void addMappedEntityClass ( Class < E > entityClass , Class < D > dtoClass , JpaMapper < E , D > mapper ) { checkNotInitialized ( ) ; if ( mappings . containsKey ( dtoClass ) ) { throw new IllegalArgumentException ( dtoClass . getName ( ) + " is already registered" ) ; } mappings . put ( dtoClass , new MappedRegistration < > ( entityClass , dtoClass , mapper ) ) ; }
adds the given entity class which is mapped to a dto with the provided mapper .
