001 /** 002 * Copyright 2005-2012 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.rice.krad.bo; 017 018 import org.kuali.rice.core.framework.persistence.jpa.CompositePrimaryKeyBase; 019 020 import javax.persistence.Column; 021 import javax.persistence.Id; 022 023 /** 024 * PK for SessionDocument. 'Cause we love the JPAness. 025 * 026 * @author Kuali Rice Team (rice.collab@kuali.org) 027 * 028 */ 029 public class SessionDocumentId extends CompositePrimaryKeyBase { 030 @Id 031 @Column(name="DOC_HDR_ID") 032 protected String documentNumber; 033 @Id 034 @Column(name="SESN_DOC_ID") 035 protected String sessionId; 036 @Id 037 @Column(name="PRNCPL_ID") 038 protected String principalId; 039 @Id 040 @Column(name="IP_ADDR") 041 protected String ipAddress; 042 043 public SessionDocumentId() {} 044 045 public SessionDocumentId(String documentNumber, String sessionId, String principalId, String ipAddress) { 046 this.documentNumber = documentNumber; 047 this.sessionId = sessionId; 048 this.principalId = principalId; 049 this.ipAddress = ipAddress; 050 } 051 052 /** 053 * @return the documentNumber 054 */ 055 public String getDocumentNumber() { 056 return this.documentNumber; 057 } 058 /** 059 * @return the sessionId 060 */ 061 public String getSessionId() { 062 return this.sessionId; 063 } 064 /** 065 * @return the principalId 066 */ 067 public String getPrincipalId() { 068 return this.principalId; 069 } 070 /** 071 * @return the ipAddress 072 */ 073 public String getIpAddress() { 074 return this.ipAddress; 075 } 076 /** 077 * @param documentNumber the documentNumber to set 078 */ 079 public void setDocumentNumber(String documentNumber) { 080 this.documentNumber = documentNumber; 081 } 082 /** 083 * @param sessionId the sessionId to set 084 */ 085 public void setSessionId(String sessionId) { 086 this.sessionId = sessionId; 087 } 088 /** 089 * @param principalId the principalId to set 090 */ 091 public void setPrincipalId(String principalId) { 092 this.principalId = principalId; 093 } 094 /** 095 * @param ipAddress the ipAddress to set 096 */ 097 public void setIpAddress(String ipAddress) { 098 this.ipAddress = ipAddress; 099 } 100 101 }