org.springframework.data.mapping.PropertyReferenceException: No property catch found for type

I had a issue like this and my mistake was the name of the custom repository class:

If the name of your jpa repository interface is LocaleJpaRepository, your new custom interface should be named LocaleJpaRepositoryCustom, but the class that makes the override in the method must be named LocaleJpaRepositoryImpl, as it follows:

public class LocalJpaRepositoryImpl implements LocalJpaRepositoryCustom{
@Override
   public void customMethod(){....}
}

Basically, the implementation class of your custom interface should start with the name of your repository interface (JPARepository) ending with ‘Impl’ keyword.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)