DATAES-29, ISSUE #16 - formatted new files

This commit is contained in:
Artur Konczak 2013-11-10 19:22:28 +00:00
parent 7f91413591
commit 655ccb0cec
2 changed files with 14 additions and 8 deletions

View File

@ -7,13 +7,19 @@ import java.io.IOException;
*/ */
public class CustomEntityMapper implements EntityMapper { public class CustomEntityMapper implements EntityMapper {
public CustomEntityMapper(){
//custom configuration/implementation (e.g. FasterXML/jackson)
}
@Override @Override
public String mapToString(Object object) throws IOException { public String mapToString(Object object) throws IOException {
//mapping Object to String
return null; return null;
} }
@Override @Override
public <T> T mapToObject(String source, Class<T> clazz) throws IOException { public <T> T mapToObject(String source, Class<T> clazz) throws IOException {
//mapping String to Object
return null; return null;
} }
} }

View File

@ -5,11 +5,11 @@
xsi:schemaLocation="http://www.springframework.org/schema/data/elasticsearch http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch-1.0.xsd xsi:schemaLocation="http://www.springframework.org/schema/data/elasticsearch http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch-1.0.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"> http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
<import resource="infrastructure.xml" /> <import resource="infrastructure.xml"/>
<bean name="elasticsearchTemplate" <bean name="elasticsearchTemplate"
class="org.springframework.data.elasticsearch.core.ElasticsearchTemplate"> class="org.springframework.data.elasticsearch.core.ElasticsearchTemplate">
<constructor-arg name="client" ref="client" /> <constructor-arg name="client" ref="client"/>
<constructor-arg name="entityMapper" ref="entityMapper"/> <constructor-arg name="entityMapper" ref="entityMapper"/>
</bean> </bean>