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.Id; |
23 | |
import javax.persistence.Lob; |
24 | |
import javax.persistence.PrePersist; |
25 | |
import javax.persistence.Table; |
26 | |
|
27 | |
import org.kuali.rice.core.jpa.annotations.Sequence; |
28 | |
import org.kuali.rice.core.util.OrmUtils; |
29 | |
import org.kuali.rice.ksb.service.KSBServiceLocator; |
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
@Entity |
37 | |
@Table(name="KRSB_FLT_SVC_DEF_T") |
38 | |
@Sequence(name="KRSB_FLT_SVC_DEF_S", property="flattenedServiceDefinitionId") |
39 | |
public class FlattenedServiceDefinition implements Serializable { |
40 | |
private static final long serialVersionUID = -4622179363250818637L; |
41 | |
|
42 | |
@Id |
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 | |
@PrePersist |
50 | |
public void beforeInsert() { |
51 | 0 | OrmUtils.populateAutoIncValue(this, KSBServiceLocator.getRegistryEntityManagerFactory().createEntityManager()); |
52 | 0 | } |
53 | |
|
54 | 0 | public FlattenedServiceDefinition() { |
55 | 0 | } |
56 | |
|
57 | 0 | public FlattenedServiceDefinition(String flattenedServiceDefinitionData) { |
58 | 0 | this.flattenedServiceDefinitionData = flattenedServiceDefinitionData; |
59 | 0 | } |
60 | |
|
61 | |
public Long getFlattenedServiceDefinitionId() { |
62 | 0 | return this.flattenedServiceDefinitionId; |
63 | |
} |
64 | |
public void setFlattenedServiceDefinitionId(Long flattenedServiceDefinitionId) { |
65 | 0 | this.flattenedServiceDefinitionId = flattenedServiceDefinitionId; |
66 | 0 | } |
67 | |
|
68 | |
public String getFlattenedServiceDefinitionData() { |
69 | 0 | return this.flattenedServiceDefinitionData; |
70 | |
} |
71 | |
public void setFlattenedServiceDefinitionData(String flattenedServiceDefinitionData) { |
72 | 0 | this.flattenedServiceDefinitionData = flattenedServiceDefinitionData; |
73 | 0 | } |
74 | |
|
75 | |
} |