mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-29 15:22:11 +00:00
DATAES-46 - Apply code formatting
This commit is contained in:
parent
a66dc08975
commit
097c5f68ce
@ -41,8 +41,7 @@ public class SimpleElasticsearchMappingContext extends
|
|||||||
protected <T> SimpleElasticsearchPersistentEntity<?> createPersistentEntity(TypeInformation<T> typeInformation) {
|
protected <T> SimpleElasticsearchPersistentEntity<?> createPersistentEntity(TypeInformation<T> typeInformation) {
|
||||||
final SimpleElasticsearchPersistentEntity<T> persistentEntity =
|
final SimpleElasticsearchPersistentEntity<T> persistentEntity =
|
||||||
new SimpleElasticsearchPersistentEntity<T>(typeInformation);
|
new SimpleElasticsearchPersistentEntity<T>(typeInformation);
|
||||||
if(context != null)
|
if (context != null) {
|
||||||
{
|
|
||||||
persistentEntity.setApplicationContext(context);
|
persistentEntity.setApplicationContext(context);
|
||||||
}
|
}
|
||||||
return persistentEntity;
|
return persistentEntity;
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2013-2014 the original author or authors.
|
* Copyright 2014 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -31,9 +31,10 @@ import org.springframework.test.context.ContextConfiguration;
|
|||||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User: akonczak@gmail.com
|
* SpELEntityTest
|
||||||
* Date: 07/08/14
|
*
|
||||||
* Time: 22:35
|
* @author Artur Konczak
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2013-2014 the original author or authors.
|
* Copyright 2014 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -19,9 +19,10 @@ import org.springframework.data.annotation.Id;
|
|||||||
import org.springframework.data.elasticsearch.annotations.Document;
|
import org.springframework.data.elasticsearch.annotations.Document;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User: akonczak@gmail.com
|
* SpELEntity
|
||||||
* Date: 07/08/14
|
*
|
||||||
* Time: 22:26
|
* @author Artur Konczak
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
@Document(indexName = "#{'abz'+'-'+'entity'}", type = "spel", indexStoreType = "memory", shards = 1, replicas = 0, refreshInterval = "-1")
|
@Document(indexName = "#{'abz'+'-'+'entity'}", type = "spel", indexStoreType = "memory", shards = 1, replicas = 0, refreshInterval = "-1")
|
||||||
public class SpELEntity {
|
public class SpELEntity {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2013-2014 the original author or authors.
|
* Copyright 2014 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -19,8 +19,10 @@ import org.springframework.data.elasticsearch.entities.SpELEntity;
|
|||||||
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
|
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Rizwan Idrees
|
* SpELRepository
|
||||||
* @author Mohsin Husen
|
*
|
||||||
|
* @author Artur Konczak
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
public interface SpELRepository extends ElasticsearchRepository<SpELEntity, String> {
|
public interface SpELRepository extends ElasticsearchRepository<SpELEntity, String> {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user