Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. package RequiredAnnotation;
  2.  
  3. /**
  4. * Created by Ruzal on 3/14/2017.
  5. */
  6. public class OrderBean {
  7.  
  8. private Long id;
  9. private String description;
  10. private String name;
  11.  
  12. public Long getId() {
  13. return id;
  14. }
  15.  
  16. public void setId(Long id) {
  17. this.id = id;
  18. }
  19.  
  20. public String getDescription() {
  21. return description;
  22. }
  23.  
  24. public void setDescription(String description) {
  25. this.description = description;
  26. }
  27.  
  28. public String getName() {
  29. return name;
  30. }
  31.  
  32. @Required
  33. public void setName(String name) {
  34. this.name = name;
  35. }
  36.  
  37. @Override
  38. public String toString() {
  39. return "OrderBean{" +
  40. "id=" + id +
  41. ", description='" + description + '\'' +
  42. ", name='" + name + '\'' +
  43. '}';
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement