This project has retired. For details please refer to its Attic page.
Clerk 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.CascadeType;
19  import javax.persistence.Column;
20  import javax.persistence.Entity;
21  import javax.persistence.FetchType;
22  import javax.persistence.Id;
23  import javax.persistence.JoinColumn;
24  import javax.persistence.ManyToOne;
25  import javax.persistence.OneToMany;
26  import javax.persistence.OneToOne;
27  import javax.persistence.Table;
28  import javax.persistence.Transient;
29  
30  /**
31   * @author <a href="mailto:kurt@apache.org">Kurt T Stam</a>
32   */
33  @Entity
34  @Table(name = "j3_clerk")
35  public class Clerk implements java.io.Serializable {
36  
37  	@Transient
38  	private static final long serialVersionUID = -4175742578534548023L;
39  	@Id()
40  	@Column(name="clerk_name", nullable = false, length=255)
41  	private String clerkName;
42  	@Column(name="publisher_id", nullable = false, length=255)
43  	private String publisherId;
44          //@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
45  	//@OneToOne(cascade = CascadeType.PERSIST , fetch = FetchType.EAGER)
46          //@JoinColumn(name = "nodeid", nullable = false)
47  	//@ManyToOne(fetch = FetchType.LAZY,  targetEntity = Node.class , cascade =  {CascadeType.PERSIST,  CascadeType.DETACH, CascadeType.MERGE, CascadeType.REFRESH })
48          
49          @Column (name="nodeid")
50          private String node;
51  	@Column(name="cred", length=255)
52  	private String cred;
53  	
54  	public Clerk() {}
55  
56  	public Clerk(String clerkName, String cred, String node, String publisherId) {
57  		super();
58  		this.clerkName = clerkName;
59  		this.cred = cred;
60  		this.node = node;
61  		this.publisherId = publisherId;
62  	}
63  
64  	public String getClerkName() {
65  		return clerkName;
66  	}
67  
68  	public void setClerkName(String clerkName) {
69  		this.clerkName = clerkName;
70  	}
71  
72  	public String getPublisherId() {
73  		return publisherId;
74  	}
75  
76  	public void setPublisherId(String publisherId) {
77  		this.publisherId = publisherId;
78  	}
79  
80  	public String getNode() {
81  		return node;
82  	}
83  
84  	public void setNode(String node) {
85  		this.node = node;
86  	}
87  
88  	public String getCred() {
89  		return cred;
90  	}
91  
92  	public void setCred(String cred) {
93  		this.cred = cred;
94  	}
95  
96  }