1package 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 at8 * 9 * http://www.apache.org/licenses/LICENSE-2.010 * 11 * Unless required by applicable law or agreed to in writing, software12 * 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 and15 * limitations under the License.16 */1718import javax.persistence.EmbeddedId;
19import javax.persistence.Entity;
20import javax.persistence.Table;
2122/**23 * @author <a href="mailto:kstam@apache.org">Kurt Stam</a>24 */25 @Entity
26 @Table(name = "j3_temp_key")
27publicclassTempKeyimplements java.io.Serializable {
2829privatestaticfinallong serialVersionUID = -2763025628473227781L;
3031privateTempKeyPK pk;
3233publicTempKey(){
34 }
3536 @EmbeddedId
37publicTempKeyPK getPk() {
38return pk;
39 }
4041publicvoid setPk(TempKeyPK pk) {
42this.pk = pk;
43 }
4445publicvoid setPk(String txId, String entityKey) {
46 TempKeyPK pk = newTempKeyPK();
47 pk.setEntityKey(entityKey);
48 pk.setTxId(txId);
49this.pk = pk;
50 }
5152 }