1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krms.impl.repository;
17
18 import org.kuali.rice.core.api.mo.common.Versioned;
19 import org.kuali.rice.krms.api.repository.BaseAttributeContract;
20
21 import javax.persistence.Column;
22 import javax.persistence.MappedSuperclass;
23 import javax.persistence.Version;
24 import java.io.Serializable;
25
26
27
28
29
30
31
32
33
34
35 @MappedSuperclass
36 public abstract class BaseAttributeBo implements BaseAttributeContract, Versioned, Serializable {
37
38 private static final long serialVersionUID = 3820684124163057591L;
39 @Column(name="ATTR_VAL")
40 private String value;
41
42 @Version
43 @Column(name="VER_NBR", length=8)
44 protected Long versionNumber;
45
46 public String getAttributeDefinitionId() {
47 if (getAttributeDefinition() != null) {
48 return getAttributeDefinition().getId();
49 }
50
51 return null;
52 }
53
54 public String getValue() {
55 return value;
56 }
57
58 public void setValue(String value) {
59 this.value = value;
60 }
61
62 public Long getVersionNumber() {
63 return versionNumber;
64 }
65
66 public void setVersionNumber(Long versionNumber) {
67 this.versionNumber = versionNumber;
68 }
69 }