View Javadoc

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   * Created with IntelliJ IDEA.
12   * User: swedev
13   * Date: 12/7/12
14   * Time: 1:10 PM
15   * To change this template use File | Settings | File Templates.
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  }