/** * Creates a {@link DefaultSessionFactory} using the configured {@link #session()} to be used with * {@link org.springframework.data.cassandra.core.CassandraTemplate}. * * @return {@link SessionFactory} used to initialize the Template API. * @since 2.0 */ @Bean public SessionFactory sessionFactory() { return new DefaultSessionFactory(getRequiredSession()); }