I'm currently working in project that needs Cassandra database to have search ability. We've got DataStax cluster and we want to use Spring Data to simplify database operations. However, when we made entity that got both - @Table
(for cassandra) and @SolrDocument
(for Solr) it happened to be broken. The only error we got is the one below. Anyone have encountered such a problem?
Caused by: org.springframework.data.mapping.PropertyReferenceException: No property findAll found for type ENTITYNAME!
I know that this is probably Spring issue, but hope to find someone who have fought this type of problem. Greetings!
Some sample entity causing problems:
@SolrDocument(solrCoreName = "sample_entity")
@Table("sample_entity")
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public final class SampleEntity {
@PrimaryKey
@Indexed(name = "id")
private UUID id;
private LocalDateTime created;
private UUID foreignId;
@Indexed(name = "name")
private String name;
private boolean someflag = true;
}