The exception PropertyReferenceException: No property getOne found for type XYZ fires on all repositories i have.
Example for one of my repos :
public interface SitePageRepository extends JpaRepository<SitePage, Long>, JpaSpecificationExecutor<SitePage> {
void deleteAllByStaticPageIsFalse();
}
They were working fine before(i did not do any change on the repos), the change i did is that i moved some shared entities and repositories to another project, then i added its dependency to my main project.
I added
@EnableJpaRepositories({"com.example.mainApp", "com.example.shared"})
Then the exceptions on repositories in my main app happened at runtime.
I returned the repositories from the external project and removed the EnableJpaRepositories annotation and then the project run successfully.
Any suggestions?