This project has retired. For details please refer to its
Attic page.
TransferTokenKey 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.ManyToOne;
26 import javax.persistence.Table;
27
28
29
30
31
32 @Entity
33 @Table(name = "j3_transfer_token_keys")
34 public class TransferTokenKey implements java.io.Serializable {
35
36 private static final long serialVersionUID = 8163650692808546199L;
37 private Long id;
38 private TransferToken transferToken;
39 private String entityKey;
40
41 public TransferTokenKey() {
42 }
43
44 public TransferTokenKey(TransferToken transferToken, String entityKey) {
45 this.transferToken = transferToken;
46 this.entityKey = entityKey;
47 }
48
49 @Id
50 @GeneratedValue(strategy=GenerationType.AUTO)
51 public Long getId() {
52 return this.id;
53 }
54 public void setId(Long id) {
55 this.id = id;
56 }
57
58 @ManyToOne(fetch = FetchType.LAZY)
59 @JoinColumn(name = "transfer_token", nullable = false)
60 public TransferToken getTransferToken() {
61 return this.transferToken;
62 }
63 public void setTransferToken(TransferToken transferToken) {
64 this.transferToken = transferToken;
65 }
66
67 @Column(name = "entity_key", length = 255)
68 public String getEntityKey() {
69 return this.entityKey;
70 }
71 public void setEntityKey(String entityKey) {
72 this.entityKey = entityKey;
73 }
74
75
76 }