/** * Return the {@link Set} of initial entity classes. Scans by default the class path using * {@link #getEntityBasePackages()}. Can be overriden by subclasses to skip class path scanning and return a fixed set * of entity classes. * * @return {@link Set} of initial entity classes. * @throws ClassNotFoundException if the entity scan fails. * @see #getEntityBasePackages() * @see CassandraEntityClassScanner * @since 2.0 */ protected Set<Class<?>> getInitialEntitySet() throws ClassNotFoundException { return CassandraEntityClassScanner.scan(getEntityBasePackages()); }
try { Set<Class<?>> entityClasses = CassandraEntityClassScanner .scan(StringUtils.commaDelimitedListToStringArray(packages));