Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. package com.bts.model;
  2.  
  3.  
  4. import java.util.Date;
  5.  
  6. import javax.persistence.*;
  7.  
  8. import org.hibernate.annotations.GenericGenerator;
  9. import org.hibernate.annotations.NotFound;
  10. import org.hibernate.annotations.NotFoundAction;
  11.  
  12. @Entity
  13. @Table(name = "TOWER")
  14. public class Tower extends BaseObject {
  15.  
  16. @Id
  17. @Column(name="ID")
  18. private String id;
  19. @Column(name="NAME")
  20. private String name;
  21. @Column(name="STATUS")
  22. private String status;
  23. @Column(name="OLD_TOWER_ID")
  24. private String oldTowerId;
  25. @ManyToOne( cascade = { CascadeType.ALL } )
  26. @JoinColumn(name="POC_ID")
  27. @NotFound(action = NotFoundAction.IGNORE)
  28. private Poc poc;
  29.  
  30. @ManyToOne( cascade = { CascadeType.ALL } )
  31. @JoinColumn(name="TOWER_CLASSIFICATION_ID")
  32. @NotFound(action = NotFoundAction.IGNORE)
  33. private TowerClassification towerClassification;
  34.  
  35. @ManyToOne( cascade = { CascadeType.ALL } )
  36. @JoinColumn(name="TOWER_TYPE_ID")
  37. @NotFound(action = NotFoundAction.IGNORE)
  38. private TowerType towerType;
  39.  
  40. @ManyToOne( cascade = { CascadeType.ALL } )
  41. @JoinColumn(name="OWNER_ID")
  42. @NotFound(action = NotFoundAction.IGNORE)
  43. private Owner owner;
  44.  
  45. @ManyToOne( cascade = { CascadeType.ALL } )
  46. @JoinColumn(name="LOCATION_ID")
  47. @NotFound(action = NotFoundAction.IGNORE)
  48. private Location location;
  49.  
  50. @ManyToOne( cascade = { CascadeType.ALL } )
  51. @JoinColumn(name="TOWER_PROVIDER_ID")
  52. @NotFound(action = NotFoundAction.IGNORE)
  53. private TowerProvider towerProvider;
  54.  
  55. public String getId() {
  56. return id;
  57. }
  58. public void setId(String id) {
  59. this.id = id;
  60. }
  61. public String getName() {
  62. return name;
  63. }
  64. public void setName(String name) {
  65. this.name = name;
  66. }
  67. public String getStatus() {
  68. return status;
  69. }
  70. public void setStatus(String status) {
  71. this.status = status;
  72. }
  73. public Poc getPoc() {
  74. return poc;
  75. }
  76. public void setPoc(Poc poc) {
  77. this.poc = poc;
  78. }
  79.  
  80. public Location getLocation() {
  81. return location;
  82. }
  83. public void setLocation(Location location) {
  84. this.location = location;
  85. }
  86.  
  87. public TowerClassification getTowerClassification() {
  88. return towerClassification;
  89. }
  90. public void setTowerClassification(TowerClassification towerClassification) {
  91. this.towerClassification = towerClassification;
  92. }
  93. public TowerType getTowerType() {
  94. return towerType;
  95. }
  96. public void setTowerType(TowerType towerType) {
  97. this.towerType = towerType;
  98. }
  99. public Owner getOwner() {
  100. return owner;
  101. }
  102. public void setOwner(Owner owner) {
  103. this.owner = owner;
  104. }
  105.  
  106. public TowerProvider getTowerProvider() {
  107. return towerProvider;
  108. }
  109. public void setTowerProvider(TowerProvider towerProvider) {
  110. this.towerProvider = towerProvider;
  111. }
  112. public String getOldTowerId() {
  113. return oldTowerId;
  114. }
  115. public void setOldTowerId(String oldTowerId) {
  116. this.oldTowerId = oldTowerId;
  117. }
  118.  
  119. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement