Remove @Persistent from entity-scan include filters.

We now only scan for entities annotated with `@Table` and `@PrimaryKeyClass` to avoid inclusion of non-Cassandra entities. Previously, types annotated (or meta-annotated) with `@Persistent` were included as Cassandra entity which could lead to mapping rule violations.

Closes #1100
This commit is contained in:
Mark Paluch
2021-03-11 15:03:38 +01:00
parent 82739fa061
commit 695df450ca

View File

@@ -232,11 +232,10 @@ public class CassandraEntityClassScanner {
/**
* @return entity annotations.
* @see Table
* @see Persistent
* @see PrimaryKeyClass
*/
@SuppressWarnings("unchecked")
protected Class<? extends Annotation>[] getEntityAnnotations() {
return new Class[] { Table.class, Persistent.class, PrimaryKeyClass.class };
return new Class[] { Table.class, PrimaryKeyClass.class };
}
}