This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo-go-samples.git
The following commit(s) were added to refs/heads/3.0 by this push:
new bb02c7f fix java User pojo id to ID (#202)
bb02c7f is described below
commit bb02c7f6adf4454e649547a66bb6163a4a827668
Author: Alan_ <[email protected]>
AuthorDate: Sat Aug 21 18:17:48 2021 +0800
fix java User pojo id to ID (#202)
---
.../src/main/java/org/apache/dubbo/User.java | 14 ++++++-------
.../src/main/java/org/apache/dubbo/User.java | 24 +++++++++++++---------
2 files changed, 20 insertions(+), 18 deletions(-)
diff --git a/helloworld/java-client/src/main/java/org/apache/dubbo/User.java
b/helloworld/java-client/src/main/java/org/apache/dubbo/User.java
index 36d1b9c..aad8c5b 100644
--- a/helloworld/java-client/src/main/java/org/apache/dubbo/User.java
+++ b/helloworld/java-client/src/main/java/org/apache/dubbo/User.java
@@ -21,7 +21,7 @@ import java.util.Date;
public class User {
- private String id;
+ private String ID;
private String name;
@@ -35,17 +35,17 @@ public class User {
public User(String id, String name, int age) {
- this.id = id;
+ this.ID = id;
this.name = name;
this.age = age;
}
- public String getId() {
- return id;
+ public String getID() {
+ return ID;
}
- public void setId(String id) {
- this.id = id;
+ public void setID(String ID) {
+ this.ID = ID;
}
public String getName() {
@@ -71,6 +71,4 @@ public class User {
public void setTime(Date time) {
this.time = time;
}
-
-
}
diff --git a/helloworld/java-server/src/main/java/org/apache/dubbo/User.java
b/helloworld/java-server/src/main/java/org/apache/dubbo/User.java
index 8483880..222bae8 100644
--- a/helloworld/java-server/src/main/java/org/apache/dubbo/User.java
+++ b/helloworld/java-server/src/main/java/org/apache/dubbo/User.java
@@ -22,7 +22,7 @@ import java.io.Serializable;
public class User implements Serializable {
- private String id;
+ private String ID;
private String name;
@@ -34,24 +34,24 @@ public class User implements Serializable {
}
public User(String id, String name, int age) {
- this.id = id;
+ this.ID = id;
this.name = name;
this.age = age;
}
public User(String id, String name, int age, Date time) {
- this.id = id;
+ this.ID = id;
this.name = name;
this.age = age;
this.time = time;
}
- public String getId() {
- return id;
+ public String getID() {
+ return ID;
}
- public void setId(String id) {
- this.id = id;
+ public void setID(String ID) {
+ this.ID = ID;
}
public String getName() {
@@ -78,9 +78,13 @@ public class User implements Serializable {
this.time = time;
}
-
-
+ @Override
public String toString() {
- return "User{id:" + id + ", name:" + name + ", age:" + age + ", time:"
+ time +"}";
+ return "User{" +
+ "ID='" + ID + '\'' +
+ ", name='" + name + '\'' +
+ ", age=" + age +
+ ", time=" + time +
+ '}';
}
}