Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <dataset>
  3. <Person id="1" dateOfBirth="2000-07-25T10:55:58" age="10.5" sex="MALE"/>
  4. </dataset>
  5.  
  6. public class Person {
  7.  
  8. private Long id;
  9. private LocalDateTime dateOfBirth;
  10. private BigDecimal age;
  11. private Sex sex;
  12.  
  13. public Long getId() {
  14. return id;
  15. }
  16.  
  17. public void setId(Long id) {
  18. this.id = id;
  19. }
  20.  
  21. public LocalDateTime getDateOfBirth() {
  22. return dateOfBirth;
  23. }
  24.  
  25. public void setDateOfBirth(LocalDateTime dateOfBirth) {
  26. this.dateOfBirth = dateOfBirth;
  27. }
  28.  
  29. public BigDecimal getAge() {
  30. return age;
  31. }
  32.  
  33. public void setAge(BigDecimal age) {
  34. this.age = age;
  35. }
  36.  
  37. public Sex getSex() {
  38. return sex;
  39. }
  40.  
  41. public void setSex(Sex sex) {
  42. this.sex = sex;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement