1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.ksb.messaging;
17
18 import java.io.Serializable;
19
20 import javax.persistence.Column;
21 import javax.persistence.Entity;
22 import javax.persistence.GeneratedValue;
23 import javax.persistence.Id;
24 import javax.persistence.Lob;
25 import javax.persistence.Table;
26
27 import org.kuali.rice.core.framework.persistence.jpa.OrmUtils;
28 import org.kuali.rice.ksb.service.KSBServiceLocator;
29
30
31
32
33
34
35 @Entity
36 @Table(name="KRSB_FLT_SVC_DEF_T")
37
38 public class FlattenedServiceDefinition implements Serializable {
39 private static final long serialVersionUID = -4622179363250818637L;
40
41 @Id
42 @GeneratedValue(generator="KRSB_FLT_SVC_DEF_S")
43 @Column(name="FLT_SVC_DEF_ID")
44 private Long flattenedServiceDefinitionId;
45 @Lob
46 @Column(name="FLT_SVC_DEF", length=4000)
47 private String flattenedServiceDefinitionData;
48
49
50 public void beforeInsert() {
51 OrmUtils.populateAutoIncValue(this, KSBServiceLocator.getRegistryEntityManagerFactory().createEntityManager());
52 }
53
54 public FlattenedServiceDefinition() {
55 }
56
57 public FlattenedServiceDefinition(String flattenedServiceDefinitionData) {
58 this.flattenedServiceDefinitionData = flattenedServiceDefinitionData;
59 }
60
61 public Long getFlattenedServiceDefinitionId() {
62 return this.flattenedServiceDefinitionId;
63 }
64 public void setFlattenedServiceDefinitionId(Long flattenedServiceDefinitionId) {
65 this.flattenedServiceDefinitionId = flattenedServiceDefinitionId;
66 }
67
68 public String getFlattenedServiceDefinitionData() {
69 return this.flattenedServiceDefinitionData;
70 }
71 public void setFlattenedServiceDefinitionData(String flattenedServiceDefinitionData) {
72 this.flattenedServiceDefinitionData = flattenedServiceDefinitionData;
73 }
74
75 }