Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1884b01

Browse files
Add a Boolean field in our MappingTest
1 parent 1e1f95a commit 1884b01

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/java/com/jfxdev/TestObj.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ public class TestObj {
2828
private String name;
2929
private String city;
3030
private String country;
31+
private boolean active;
3132

3233
public TestObj(int id, String name, String city, String country) {
3334
this.id = id;
3435
this.name = name;
3536
this.city = city;
3637
this.country = country;
38+
this.active = Math.random() >= 0.5;
3739
}
3840

3941
public int getId() {
@@ -67,4 +69,8 @@ public String getCountry() {
6769
public void setCountry(String country) {
6870
this.country = country;
6971
}
72+
73+
public boolean isActive() { return this.active; }
74+
75+
public void setActive(boolean active) { this.active = active; }
7076
}

0 commit comments

Comments
 (0)