DATACASS-445 - Polishing.
Reorder fields. Reduce visibility.
This commit is contained in:
@@ -91,13 +91,14 @@ import com.datastax.driver.core.querybuilder.Update;
|
||||
public class MappingCassandraConverter extends AbstractCassandraConverter
|
||||
implements CassandraConverter, ApplicationContextAware, BeanClassLoaderAware {
|
||||
|
||||
protected ApplicationContext applicationContext;
|
||||
protected final CassandraMappingContext mappingContext;
|
||||
protected ClassLoader beanClassLoader;
|
||||
protected SpELContext spELContext;
|
||||
|
||||
private final Logger log = LoggerFactory.getLogger(getClass());
|
||||
|
||||
private final CassandraMappingContext mappingContext;
|
||||
|
||||
private ClassLoader beanClassLoader;
|
||||
|
||||
private SpELContext spELContext;
|
||||
|
||||
/**
|
||||
* Creates a new {@link MappingCassandraConverter} with a {@link BasicCassandraMappingContext}.
|
||||
*/
|
||||
@@ -156,7 +157,6 @@ public class MappingCassandraConverter extends AbstractCassandraConverter
|
||||
*/
|
||||
@Override
|
||||
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
|
||||
this.applicationContext = applicationContext;
|
||||
this.spELContext = new SpELContext(this.spELContext, applicationContext);
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,9 @@ public class MappingCassandraEntityInformation<T, ID extends Serializable> exten
|
||||
implements CassandraEntityInformation<T, ID> {
|
||||
|
||||
private final CassandraPersistentEntity<T> entityMetadata;
|
||||
|
||||
private final CassandraConverter converter;
|
||||
|
||||
private final boolean isPrimaryKeyEntity;
|
||||
|
||||
/**
|
||||
|
||||
@@ -45,8 +45,9 @@ import com.datastax.driver.core.querybuilder.Select;
|
||||
*/
|
||||
public class SimpleCassandraRepository<T, ID extends Serializable> implements TypedIdCassandraRepository<T, ID> {
|
||||
|
||||
protected CassandraOperations operations;
|
||||
protected CassandraEntityInformation<T, ID> entityInformation;
|
||||
private final CassandraEntityInformation<T, ID> entityInformation;
|
||||
|
||||
private final CassandraOperations operations;
|
||||
|
||||
/**
|
||||
* Creates a new {@link SimpleCassandraRepository} for the given {@link CassandraEntityInformation} and
|
||||
|
||||
Reference in New Issue
Block a user