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
25
26
27
28
29
30
31
32
33
34 @MappedSuperclass
35 public abstract class BaseAttributeBo implements BaseAttributeContract, Versioned {
36
37 @Column(name="ATTR_VAL")
38 private String value;
39
40 @Version
41 @Column(name="VER_NBR", length=8)
42 protected Long versionNumber;
43
44 public String getAttributeDefinitionId() {
45 if (getAttributeDefinition() != null) {
46 return getAttributeDefinition().getId();
47 }
48
49 return null;
50 }
51
52 public String getValue() {
53 return value;
54 }
55
56 public void setValue(String value) {
57 this.value = value;
58 }
59
60 public Long getVersionNumber() {
61 return versionNumber;
62 }
63
64 public void setVersionNumber(Long versionNumber) {
65 this.versionNumber = versionNumber;
66 }
67 }