Skip to content

Commit 0ac712f

Browse files
committed
added GirlFriend Class
1 parent 96099ee commit 0ac712f

File tree

1 file changed

+59
-0
lines changed
  • src/main/java/org/springframework/data/elasticsearch/entities

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/*
2+
* Copyright 2014 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package org.springframework.data.elasticsearch.entities;
17+
18+
import java.util.List;
19+
20+
import org.springframework.data.elasticsearch.annotations.Field;
21+
import org.springframework.data.elasticsearch.annotations.FieldType;
22+
23+
/**
24+
* @author Mohsin Husen
25+
*/
26+
27+
public class GirlFriend {
28+
29+
private String name;
30+
31+
private String type;
32+
33+
@Field(type = FieldType.Nested)
34+
private List<Car> cars;
35+
36+
public String getName() {
37+
return name;
38+
}
39+
40+
public void setName(String name) {
41+
this.name = name;
42+
}
43+
44+
public String getType() {
45+
return type;
46+
}
47+
48+
public void setType(String type) {
49+
this.type = type;
50+
}
51+
52+
public List<Car> getCars() {
53+
return cars;
54+
}
55+
56+
public void setCars(List<Car> cars) {
57+
this.cars = cars;
58+
}
59+
}

0 commit comments

Comments
 (0)