View Javadoc
1   package ca.uhn.fhir.jpa.entity;
2   
3   /*
4    * #%L
5    * HAPI FHIR JPA Server
6    * %%
7    * Copyright (C) 2014 - 2018 University Health Network
8    * %%
9    * Licensed under the Apache License, Version 2.0 (the "License");
10   * you may not use this file except in compliance with the License.
11   * You may obtain a copy of the License at
12   * 
13   * http://www.apache.org/licenses/LICENSE-2.0
14   * 
15   * Unless required by applicable law or agreed to in writing, software
16   * distributed under the License is distributed on an "AS IS" BASIS,
17   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   * See the License for the specific language governing permissions and
19   * limitations under the License.
20   * #L%
21   */
22  
23  import javax.persistence.*;
24  import java.io.Serializable;
25  
26  @Entity
27  @Table(name = "TRM_CONCEPT_DESIG", uniqueConstraints = {
28  }, indexes = {
29  })
30  public class TermConceptDesignation implements Serializable {
31  
32  	private static final long serialVersionUID = 1L;
33  	@ManyToOne
34  	@JoinColumn(name = "CONCEPT_PID", referencedColumnName = "PID", foreignKey = @ForeignKey(name = "FK_CONCEPTDESIG_CONCEPT"))
35  	private TermConcept myConcept;
36  	@Id()
37  	@SequenceGenerator(name = "SEQ_CONCEPT_DESIG_PID", sequenceName = "SEQ_CONCEPT_DESIG_PID")
38  	@GeneratedValue(strategy = GenerationType.AUTO, generator = "SEQ_CONCEPT_DESIG_PID")
39  	@Column(name = "PID")
40  	private Long myId;
41  	@Column(name = "LANG", length = 500, nullable = true)
42  	private String myLanguage;
43  	@Column(name = "USE_SYSTEM", length = 500, nullable = true)
44  	private String myUseSystem;
45  	@Column(name = "USE_CODE", length = 500, nullable = true)
46  	private String myUseCode;
47  	@Column(name = "USE_DISPLAY", length = 500, nullable = true)
48  	private String myUseDisplay;
49  	@Column(name = "VAL", length = 500, nullable = false)
50  	private String myValue;
51  
52  	public String getLanguage() {
53  		return myLanguage;
54  	}
55  
56  	public TermConceptDesignation setLanguage(String theLanguage) {
57  		myLanguage = theLanguage;
58  		return this;
59  	}
60  
61  	public String getUseCode() {
62  		return myUseCode;
63  	}
64  
65  	public TermConceptDesignation setUseCode(String theUseCode) {
66  		myUseCode = theUseCode;
67  		return this;
68  	}
69  
70  	public String getUseDisplay() {
71  		return myUseDisplay;
72  	}
73  
74  	public TermConceptDesignation setUseDisplay(String theUseDisplay) {
75  		myUseDisplay = theUseDisplay;
76  		return this;
77  	}
78  
79  	public String getUseSystem() {
80  		return myUseSystem;
81  	}
82  
83  	public TermConceptDesignation setUseSystem(String theUseSystem) {
84  		myUseSystem = theUseSystem;
85  		return this;
86  	}
87  
88  	public String getValue() {
89  		return myValue;
90  	}
91  
92  	public TermConceptDesignation setValue(String theValue) {
93  		myValue = theValue;
94  		return this;
95  	}
96  
97  	public TermConceptDesignation setConcept(TermConcept theConcept) {
98  		myConcept = theConcept;
99  		return this;
100 	}
101 
102 
103 }