/** * Create a new {@link QueryByExampleRedisExecutor} given {@link EntityInformation} and {@link RedisKeyValueTemplate}. * * @param entityInformation must not be {@literal null}. * @param keyValueTemplate must not be {@literal null}. */ public QueryByExampleRedisExecutor(EntityInformation<T, ?> entityInformation, RedisKeyValueTemplate keyValueTemplate, IndexResolver indexResolver) { Assert.notNull(entityInformation, "EntityInformation must not be null!"); Assert.notNull(keyValueTemplate, "RedisKeyValueTemplate must not be null!"); Assert.notNull(indexResolver, "IndexResolver must not be null!"); this.entityInformation = entityInformation; this.keyValueTemplate = keyValueTemplate; this.mapper = new ExampleQueryMapper(keyValueTemplate.getMappingContext(), indexResolver); }
/** * Create a new {@link QueryByExampleRedisExecutor} given {@link EntityInformation} and {@link RedisKeyValueTemplate}. * * @param entityInformation must not be {@literal null}. * @param keyValueTemplate must not be {@literal null}. */ public QueryByExampleRedisExecutor(EntityInformation<T, ?> entityInformation, RedisKeyValueTemplate keyValueTemplate, IndexResolver indexResolver) { Assert.notNull(entityInformation, "EntityInformation must not be null!"); Assert.notNull(keyValueTemplate, "RedisKeyValueTemplate must not be null!"); Assert.notNull(indexResolver, "IndexResolver must not be null!"); this.entityInformation = entityInformation; this.keyValueTemplate = keyValueTemplate; this.mapper = new ExampleQueryMapper(keyValueTemplate.getMappingContext(), indexResolver); }
/** * Create a new {@link QueryByExampleRedisExecutor} given {@link EntityInformation} and {@link RedisKeyValueTemplate}. * * @param entityInformation must not be {@literal null}. * @param keyValueTemplate must not be {@literal null}. */ public QueryByExampleRedisExecutor(EntityInformation<T, ?> entityInformation, RedisKeyValueTemplate keyValueTemplate, IndexResolver indexResolver) { Assert.notNull(entityInformation, "EntityInformation must not be null!"); Assert.notNull(keyValueTemplate, "RedisKeyValueTemplate must not be null!"); Assert.notNull(indexResolver, "IndexResolver must not be null!"); this.entityInformation = entityInformation; this.keyValueTemplate = keyValueTemplate; this.mapper = new ExampleQueryMapper(keyValueTemplate.getMappingContext(), indexResolver); }