This project has retired. For details please refer to its Attic page.
DiscoveryUrl xref
View Javadoc
1   package org.apache.juddi.model;
2   /*
3    * Copyright 2001-2008 The Apache Software Foundation.
4    * 
5    * Licensed under the Apache License, Version 2.0 (the "License");
6    * you may not use this file except in compliance with the License.
7    * You may obtain a copy of the License at
8    * 
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   * 
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
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   * @author <a href="mailto:kurt@apache.org">Kurt T Stam</a>
31   * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
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  }