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:
@@ -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 };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user