I have a state stored aggregate which uses generic jpa repository. I do not want to apply cqrs on this aggregate so that I want to query directly this table to get all aggregates or filter by fields. This is my aggregate repository configuration;
@Bean("customRewardRepository") fun rewardRepository(): Repository<Reward> = GenericJpaRepository.builder(Reward::class.java) .entityManagerProvider(entityManagerProvider) .eventBus(eventBus) .build()
How can I query this table by using spring data jpa?