Added Added initial files for entities,repositories for allocation manager module
[airavata-sandbox.git] / allocation-manager / allocation-manager-server / src / main / java / org / apache / airavata / allocation / manager / db / entities / UserAllocationDetailEntity.java
1 package org.apache.airavata.allocation.manager.db.entities;
2
3 import java.io.Serializable;
4 import javax.persistence.*;
5 import java.math.BigInteger;
6
7
8 /**
9 * The persistent class for the user_allocation_details database table.
10 *
11 */
12 @Entity
13 @Table(name="user_allocation_details")
14 @NamedQuery(name="UserAllocationDetail.findAll", query="SELECT u FROM UserAllocationDetail u")
15 public class UserAllocationDetail implements Serializable {
16 private static final long serialVersionUID = 1L;
17
18 @EmbeddedId
19 private UserAllocationDetailPK id;
20
21 @Lob
22 @Column(name="APPLICATIONS_TO_BE_USED")
23 private String applicationsToBeUsed;
24
25 @Column(name="DISK_USAGE_RANGE_PER_JOB")
26 private BigInteger diskUsageRangePerJob;
27
28 @Lob
29 private byte[] documents;
30
31 @Lob
32 @Column(name="FIELD_OF_SCIENCE")
33 private String fieldOfScience;
34
35 @Lob
36 private String keywords;
37
38 @Column(name="MAX_MEMORY_PER_CPU")
39 private BigInteger maxMemoryPerCpu;
40
41 @Column(name="NUMBER_OF_CPU_PER_JOB")
42 private BigInteger numberOfCpuPerJob;
43
44 @Lob
45 @Column(name="PROJECT_DESCRIPTION")
46 private String projectDescription;
47
48 @Lob
49 @Column(name="PROJECT_REVIEWED_AND_FUNDED_BY")
50 private String projectReviewedAndFundedBy;
51
52 @Column(name="REQUESTED_DATE")
53 private BigInteger requestedDate;
54
55 @Column(name="SERVICE_UNITS")
56 private BigInteger serviceUnits;
57
58 @Lob
59 @Column(name="SPECIFIC_RESOURCE_SELECTION")
60 private String specificResourceSelection;
61
62 @Lob
63 private String title;
64
65 @Column(name="TYPE_OF_ALLOCATION")
66 private String typeOfAllocation;
67
68 @Column(name="TYPICAL_SU_PER_JOB")
69 private BigInteger typicalSuPerJob;
70
71 public UserAllocationDetail() {
72 }
73
74 public UserAllocationDetailPK getId() {
75 return this.id;
76 }
77
78 public void setId(UserAllocationDetailPK id) {
79 this.id = id;
80 }
81
82 public String getApplicationsToBeUsed() {
83 return this.applicationsToBeUsed;
84 }
85
86 public void setApplicationsToBeUsed(String applicationsToBeUsed) {
87 this.applicationsToBeUsed = applicationsToBeUsed;
88 }
89
90 public BigInteger getDiskUsageRangePerJob() {
91 return this.diskUsageRangePerJob;
92 }
93
94 public void setDiskUsageRangePerJob(BigInteger diskUsageRangePerJob) {
95 this.diskUsageRangePerJob = diskUsageRangePerJob;
96 }
97
98 public byte[] getDocuments() {
99 return this.documents;
100 }
101
102 public void setDocuments(byte[] documents) {
103 this.documents = documents;
104 }
105
106 public String getFieldOfScience() {
107 return this.fieldOfScience;
108 }
109
110 public void setFieldOfScience(String fieldOfScience) {
111 this.fieldOfScience = fieldOfScience;
112 }
113
114 public String getKeywords() {
115 return this.keywords;
116 }
117
118 public void setKeywords(String keywords) {
119 this.keywords = keywords;
120 }
121
122 public BigInteger getMaxMemoryPerCpu() {
123 return this.maxMemoryPerCpu;
124 }
125
126 public void setMaxMemoryPerCpu(BigInteger maxMemoryPerCpu) {
127 this.maxMemoryPerCpu = maxMemoryPerCpu;
128 }
129
130 public BigInteger getNumberOfCpuPerJob() {
131 return this.numberOfCpuPerJob;
132 }
133
134 public void setNumberOfCpuPerJob(BigInteger numberOfCpuPerJob) {
135 this.numberOfCpuPerJob = numberOfCpuPerJob;
136 }
137
138 public String getProjectDescription() {
139 return this.projectDescription;
140 }
141
142 public void setProjectDescription(String projectDescription) {
143 this.projectDescription = projectDescription;
144 }
145
146 public String getProjectReviewedAndFundedBy() {
147 return this.projectReviewedAndFundedBy;
148 }
149
150 public void setProjectReviewedAndFundedBy(String projectReviewedAndFundedBy) {
151 this.projectReviewedAndFundedBy = projectReviewedAndFundedBy;
152 }
153
154 public BigInteger getRequestedDate() {
155 return this.requestedDate;
156 }
157
158 public void setRequestedDate(BigInteger requestedDate) {
159 this.requestedDate = requestedDate;
160 }
161
162 public BigInteger getServiceUnits() {
163 return this.serviceUnits;
164 }
165
166 public void setServiceUnits(BigInteger serviceUnits) {
167 this.serviceUnits = serviceUnits;
168 }
169
170 public String getSpecificResourceSelection() {
171 return this.specificResourceSelection;
172 }
173
174 public void setSpecificResourceSelection(String specificResourceSelection) {
175 this.specificResourceSelection = specificResourceSelection;
176 }
177
178 public String getTitle() {
179 return this.title;
180 }
181
182 public void setTitle(String title) {
183 this.title = title;
184 }
185
186 public String getTypeOfAllocation() {
187 return this.typeOfAllocation;
188 }
189
190 public void setTypeOfAllocation(String typeOfAllocation) {
191 this.typeOfAllocation = typeOfAllocation;
192 }
193
194 public BigInteger getTypicalSuPerJob() {
195 return this.typicalSuPerJob;
196 }
197
198 public void setTypicalSuPerJob(BigInteger typicalSuPerJob) {
199 this.typicalSuPerJob = typicalSuPerJob;
200 }
201
202 }