Guest User

LabTestAttribute.java

a guest
Jan 3rd, 2019
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.07 KB | None | 0 0
  1.       public class LabTestAttribute extends BaseAttribute<LabTestAttributeType, LabTest>
  2.         implements Attribute<LabTestAttributeType, LabTest> {
  3.        
  4.         private static final long serialVersionUID = 22986710762598701L;
  5.        
  6.         private Integer labTestAttributeId;
  7.        
  8.         /**
  9.          * Default constructor
  10.          */
  11.         public LabTestAttribute() {
  12.         }
  13.        
  14.         public Integer getLabTestAttributeId() {
  15.             return labTestAttributeId;
  16.         }
  17.        
  18.         public void setLabTestAttributeId(Integer labTestAttributeId) {
  19.             this.labTestAttributeId = labTestAttributeId;
  20.         }
  21.        
  22.         /**
  23.          * @return {@link LabTest}
  24.          */
  25.         public LabTest getLabTest() {
  26.             return getOwner();
  27.         }
  28.        
  29.         /**
  30.          * @param labTest
  31.          */
  32.         public void setLabTest(LabTest labTest) {
  33.             setOwner(labTest);
  34.         }
  35.        
  36.        
  37.         @Override
  38.         public Integer getId() {
  39.             return getLabTestAttributeId();
  40.         }
  41.        
  42.         @Override
  43.         public void setId(Integer id) {
  44.             setLabTestAttributeId(id);
  45.         }
  46.        
  47.     }
Add Comment
Please, Sign In to add comment