I was trying to use QuerydslJpaRepository
in my project, but it’s deprecated, and it is recommended to use QuerydslPredicateExecutor
instead. However, QuerydslPredicateExecutor
does not have the save()
method, which is present in QuerydslJpaRepository
.
How can I resolve this issue?
Your repository should extend not only QueryDslPredicateExecutor
, but JpaRepository which contains save
method (inherited from CrudRepository).
public interface YourEntityRepository
extends JpaRepository<YourEntity, ID>, QueryDslPredicateExecutor<YourEntity> {
}