1 package org.kuali.student.enrollment.class2.courseoffering.model;
2
3 import org.kuali.student.r2.common.entity.BaseEntity;
4
5 import javax.persistence.Column;
6 import javax.persistence.Entity;
7 import javax.persistence.Table;
8 import javax.persistence.UniqueConstraint;
9
10
11
12
13
14
15
16
17
18 @Entity
19 @Table(name = "KSEN_CODE_GENERATOR_LOCKS", uniqueConstraints={
20 @UniqueConstraint(columnNames={"CODE", "UNIQUE_KEY", "NAMESPACE"})} )
21 public class CodeGeneratorLocksEntity extends BaseEntity {
22
23 @Column(name = "CODE", nullable = false)
24 String code;
25
26 @Column(name = "UNIQUE_KEY", nullable = false)
27 String uniqueKey;
28
29 @Column(name = "NAMESPACE", nullable = false)
30 String namespace;
31
32 public CodeGeneratorLocksEntity() {
33 }
34
35 public String getCode() {
36 return code;
37 }
38
39 public void setCode(String code) {
40 this.code = code;
41 }
42
43 public String getNamespace() {
44 return namespace;
45 }
46
47 public void setNamespace(String namespace) {
48 this.namespace = namespace;
49 }
50
51 public String getUniqueKey() {
52 return uniqueKey;
53 }
54
55 public void setUniqueKey(String uniqueKey) {
56 this.uniqueKey = uniqueKey;
57 }
58 }