This project has retired. For details please refer to its
Attic page.
DiscoveryUrl xref
1 package org.apache.juddi.model;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 import javax.persistence.Column;
19 import javax.persistence.Entity;
20 import javax.persistence.FetchType;
21 import javax.persistence.GeneratedValue;
22 import javax.persistence.GenerationType;
23 import javax.persistence.Id;
24 import javax.persistence.JoinColumn;
25 import javax.persistence.Lob;
26 import javax.persistence.ManyToOne;
27 import javax.persistence.Table;
28
29
30
31
32
33 @Entity
34 @Table(name = "j3_discovery_url")
35 public class DiscoveryUrl implements java.io.Serializable {
36
37 private static final long serialVersionUID = -1672224929919830852L;
38 private Long id;
39 private BusinessEntity businessEntity;
40 private String useType;
41 private String url;
42
43 public DiscoveryUrl() {
44 }
45
46 public DiscoveryUrl(BusinessEntity businessEntity,
47 String useType, String url) {
48 this.businessEntity = businessEntity;
49 this.useType = useType;
50 this.url = url;
51 }
52
53 @Id
54 @GeneratedValue(strategy=GenerationType.AUTO)
55 public Long getId() {
56 return this.id;
57 }
58 public void setId(Long id) {
59 this.id = id;
60 }
61
62 @ManyToOne(fetch = FetchType.LAZY)
63 @JoinColumn(name = "entity_key", nullable = false)
64 public BusinessEntity getBusinessEntity() {
65 return this.businessEntity;
66 }
67 public void setBusinessEntity(BusinessEntity businessEntity) {
68 this.businessEntity = businessEntity;
69 }
70
71 @Column(name = "use_type", nullable = false, length=255)
72 public String getUseType() {
73 return this.useType;
74 }
75 public void setUseType(String useType) {
76 this.useType = useType;
77 }
78
79 @Lob
80 @Column(name = "url", nullable = false, length=4096)
81 public String getUrl() {
82 return this.url;
83 }
84 public void setUrl(String url) {
85 this.url = url;
86 }
87
88 }