Skip to content

Commit 6243fa3

Browse files
author
Grzegorz Piwowarek
committed
Move Elasticsearch module into Spring-Data-Elasticsearch
1 parent 19798c4 commit 6243fa3

6 files changed

Lines changed: 63 additions & 108 deletions

File tree

‎elasticsearch/README.md‎

Lines changed: 0 additions & 6 deletions
This file was deleted.

‎elasticsearch/pom.xml‎

Lines changed: 0 additions & 49 deletions
This file was deleted.

‎pom.xml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
<module>dozer</module>
3030
<module>dependency-injection</module>
3131
<module>deltaspike</module>
32-
<module>elasticsearch</module>
3332

3433
<module>enterprise-patterns</module>
3534
<module>feign-client</module>

‎spring-data-elasticsearch/pom.xml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,17 @@
6969
<artifactId>log4j-over-slf4j</artifactId>
7070
<version>${org.slf4j.version}</version>
7171
</dependency>
72+
73+
<dependency>
74+
<groupId>org.elasticsearch</groupId>
75+
<artifactId>elasticsearch</artifactId>
76+
<version>2.3.5</version>
77+
</dependency>
78+
<dependency>
79+
<groupId>com.alibaba</groupId>
80+
<artifactId>fastjson</artifactId>
81+
<version>1.2.13</version>
82+
</dependency>
7283
</dependencies>
7384
<build>
7485
<plugins>

elasticsearch/src/main/java/com/baeldung/elasticsearch/Person.java renamed to spring-data-elasticsearch/src/main/java/com/baeldung/elasticsearch/Person.java

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
1-
package com.baeldung.elasticsearch;
2-
3-
import java.util.Date;
4-
5-
public class Person {
6-
7-
private int age;
8-
9-
private String fullName;
10-
11-
private Date dateOfBirth;
12-
13-
public Person() {
14-
15-
}
16-
17-
public Person(int age, String fullName, Date dateOfBirth) {
18-
super();
19-
this.age = age;
20-
this.fullName = fullName;
21-
this.dateOfBirth = dateOfBirth;
22-
}
23-
24-
public int getAge() {
25-
return age;
26-
}
27-
28-
public void setAge(int age) {
29-
this.age = age;
30-
}
31-
32-
public String getFullName() {
33-
return fullName;
34-
}
35-
36-
public void setFullName(String fullName) {
37-
this.fullName = fullName;
38-
}
39-
40-
public Date getDateOfBirth() {
41-
return dateOfBirth;
42-
}
43-
44-
public void setDateOfBirth(Date dateOfBirth) {
45-
this.dateOfBirth = dateOfBirth;
46-
}
47-
48-
@Override
49-
public String toString() {
50-
return "Person [age=" + age + ", fullName=" + fullName + ", dateOfBirth=" + dateOfBirth + "]";
51-
}
52-
}
1+
package com.baeldung.elasticsearch;
2+
3+
import java.util.Date;
4+
5+
public class Person {
6+
7+
private int age;
8+
9+
private String fullName;
10+
11+
private Date dateOfBirth;
12+
13+
public Person() {
14+
15+
}
16+
17+
public Person(int age, String fullName, Date dateOfBirth) {
18+
super();
19+
this.age = age;
20+
this.fullName = fullName;
21+
this.dateOfBirth = dateOfBirth;
22+
}
23+
24+
public int getAge() {
25+
return age;
26+
}
27+
28+
public void setAge(int age) {
29+
this.age = age;
30+
}
31+
32+
public String getFullName() {
33+
return fullName;
34+
}
35+
36+
public void setFullName(String fullName) {
37+
this.fullName = fullName;
38+
}
39+
40+
public Date getDateOfBirth() {
41+
return dateOfBirth;
42+
}
43+
44+
public void setDateOfBirth(Date dateOfBirth) {
45+
this.dateOfBirth = dateOfBirth;
46+
}
47+
48+
@Override
49+
public String toString() {
50+
return "Person [age=" + age + ", fullName=" + fullName + ", dateOfBirth=" + dateOfBirth + "]";
51+
}
52+
}

elasticsearch/src/test/java/com/baeldung/elasticsearch/ElasticSearchUnitTests.java renamed to spring-data-elasticsearch/src/test/java/com/baeldung/elasticsearch/ElasticSearchUnitTests.java

File renamed without changes.

0 commit comments

Comments
 (0)