@Override protected Object getTargetRepository(RepositoryInformation metadata) { EntityInformation<?, Serializable> entityInformation = getEntityInformation(metadata.getDomainType()); Class<?> repositoryInterface = metadata.getRepositoryInterface(); Class<?> javaType = entityInformation.getJavaType(); String cluster = getCustomCluster(metadata); if (cluster != null) { return new SimpleOrientRepository(operations, javaType, cluster, repositoryInterface); } else { return new SimpleOrientRepository(operations, javaType, repositoryInterface); } }
@Override protected Object getTargetRepository(RepositoryInformation metadata) { EntityInformation<?, Serializable> entityInformation = getEntityInformation(metadata.getDomainType()); Class<?> repositoryInterface = metadata.getRepositoryInterface(); Class<?> javaType = entityInformation.getJavaType(); String cluster = getCustomCluster(metadata); if (cluster != null) { return new SimpleOrientRepository(operations, javaType, cluster, repositoryInterface); } else { return new SimpleOrientRepository(operations, javaType, repositoryInterface); } }