Skip to content

Commit 0951ab3

Browse files
author
Fernando de Oliveira Pereira
committed
remove lombok
1 parent 1c9821c commit 0951ab3

File tree

6 files changed

+156
-12
lines changed

6 files changed

+156
-12
lines changed

devframework/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,12 @@
138138
<dependency>
139139
<groupId>io.github.esfinge-framework</groupId>
140140
<artifactId>querybuilder-jpa1</artifactId>
141-
<version>2.0.0</version>
141+
<version>2.1.0</version>
142142
</dependency>
143143
<dependency>
144144
<groupId>io.github.esfinge-framework</groupId>
145145
<artifactId>querybuilder-mongodb</artifactId>
146-
<version>2.0.0</version>
146+
<version>2.1.0</version>
147147
</dependency>
148148
<dependency>
149149
<groupId>net.sf.esfinge</groupId>

devframework/src/main/java/org/esfinge/virtuallab/metadata/processors/ChartReturnData.java

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,35 @@
22

33
import java.io.Serializable;
44
import java.util.Date;
5-
import lombok.Data;
65

7-
@Data
86
public class ChartReturnData implements Serializable {
97

108
private Date date;
119
private String dateStr;
1210
private Integer value;
11+
12+
public Date getDate() {
13+
return date;
14+
}
15+
16+
public void setDate(Date date) {
17+
this.date = date;
18+
}
19+
20+
public String getDateStr() {
21+
return dateStr;
22+
}
23+
24+
public void setDateStr(String dateStr) {
25+
this.dateStr = dateStr;
26+
}
27+
28+
public Integer getValue() {
29+
return value;
30+
}
31+
32+
public void setValue(Integer value) {
33+
this.value = value;
34+
}
35+
1336
}

devframework/src/main/java/org/esfinge/virtuallab/polyglot/PolyglotConfigurator.java

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
import java.util.HashMap;
44
import java.util.Map;
5-
import lombok.Data;
65

7-
@Data
86
public class PolyglotConfigurator {
97

108
private static PolyglotConfigurator _instance;
@@ -20,4 +18,20 @@ public static PolyglotConfigurator getInstance() {
2018
return _instance;
2119
}
2220

21+
public ClassLoader getClassLoader() {
22+
return classLoader;
23+
}
24+
25+
public void setClassLoader(ClassLoader classLoader) {
26+
this.classLoader = classLoader;
27+
}
28+
29+
public Map<String, SecondaryInfo> getConfigs() {
30+
return configs;
31+
}
32+
33+
public void setConfigs(Map<String, SecondaryInfo> configs) {
34+
this.configs = configs;
35+
}
36+
2337
}

devframework/src/main/java/org/esfinge/virtuallab/polyglot/SecondaryInfo.java

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
import java.util.ArrayList;
44
import java.util.List;
5-
import lombok.Data;
65

7-
@Data
86
public class SecondaryInfo {
97

108
private String url;
@@ -23,4 +21,44 @@ public SecondaryInfo(String url, String user, String password, String dialect) {
2321
this.dialect = dialect;
2422
}
2523

24+
public String getUrl() {
25+
return url;
26+
}
27+
28+
public void setUrl(String url) {
29+
this.url = url;
30+
}
31+
32+
public String getUser() {
33+
return user;
34+
}
35+
36+
public void setUser(String user) {
37+
this.user = user;
38+
}
39+
40+
public String getPassword() {
41+
return password;
42+
}
43+
44+
public void setPassword(String password) {
45+
this.password = password;
46+
}
47+
48+
public String getDialect() {
49+
return dialect;
50+
}
51+
52+
public void setDialect(String dialect) {
53+
this.dialect = dialect;
54+
}
55+
56+
public List<Class<?>> getMappedClasses() {
57+
return mappedClasses;
58+
}
59+
60+
public void setMappedClasses(List<Class<?>> mappedClasses) {
61+
this.mappedClasses = mappedClasses;
62+
}
63+
2664
}

devframework/src/test/java/org/esfinge/virtuallab/demo/polyglot/Address.java

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,39 @@
44
import dev.morphia.annotations.Id;
55
import ef.qb.core.annotation.PersistenceType;
66
import java.io.Serializable;
7-
import lombok.Data;
87
import org.bson.types.ObjectId;
98

109
@Entity
1110
@PersistenceType("MONGODB")
12-
@Data
1311
public class Address implements Serializable {
1412

1513
@Id
1614
private ObjectId id;
1715
private String city;
1816
private String uf;
1917

18+
public ObjectId getId() {
19+
return id;
20+
}
21+
22+
public void setId(ObjectId id) {
23+
this.id = id;
24+
}
25+
26+
public String getCity() {
27+
return city;
28+
}
29+
30+
public void setCity(String city) {
31+
this.city = city;
32+
}
33+
34+
public String getUf() {
35+
return uf;
36+
}
37+
38+
public void setUf(String uf) {
39+
this.uf = uf;
40+
}
41+
2042
}

devframework/src/test/java/org/esfinge/virtuallab/demo/polyglot/Person.java

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@
1212
import javax.persistence.Id;
1313
import javax.persistence.SequenceGenerator;
1414
import javax.persistence.Transient;
15-
import lombok.Data;
1615
import org.bson.types.ObjectId;
1716
import org.esfinge.virtuallab.polyglot.ObjectIdConverter;
1817

1918
@Entity
2019
@PersistenceType(value = "JPA1", secondary = "MONGODB")
21-
@Data
2220
public class Person implements Serializable {
2321

2422
@Id
@@ -36,4 +34,53 @@ public class Person implements Serializable {
3634
@PolyglotOneToOne(referencedEntity = Address.class)
3735
@PolyglotJoin(name = "addressId", referencedAttributeName = "id")
3836
private Address address;
37+
38+
public Integer getId() {
39+
return id;
40+
}
41+
42+
public void setId(Integer id) {
43+
this.id = id;
44+
}
45+
46+
public String getName() {
47+
return name;
48+
}
49+
50+
public void setName(String name) {
51+
this.name = name;
52+
}
53+
54+
public String getLastName() {
55+
return lastName;
56+
}
57+
58+
public void setLastName(String lastName) {
59+
this.lastName = lastName;
60+
}
61+
62+
public Integer getAge() {
63+
return age;
64+
}
65+
66+
public void setAge(Integer age) {
67+
this.age = age;
68+
}
69+
70+
public ObjectId getAddressId() {
71+
return addressId;
72+
}
73+
74+
public void setAddressId(ObjectId addressId) {
75+
this.addressId = addressId;
76+
}
77+
78+
public Address getAddress() {
79+
return address;
80+
}
81+
82+
public void setAddress(Address address) {
83+
this.address = address;
84+
}
85+
3986
}

0 commit comments

Comments
 (0)