001 /* 002 * Copyright 2011 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 /* 017 * Created on Jul 9, 2004 018 * 019 */ 020 package org.kuali.kfs.pdp.businessobject; 021 022 import java.util.LinkedHashMap; 023 024 import org.apache.commons.lang.builder.EqualsBuilder; 025 import org.apache.commons.lang.builder.HashCodeBuilder; 026 import org.apache.commons.lang.builder.ToStringBuilder; 027 import org.kuali.kfs.sys.KFSPropertyConstants; 028 import org.kuali.kfs.sys.businessobject.TimestampedBusinessObjectBase; 029 import org.kuali.rice.kns.util.KualiInteger; 030 031 public class PaymentNoteText extends TimestampedBusinessObjectBase { 032 033 private KualiInteger id; // PMT_NTE_ID 034 035 private KualiInteger paymentDetailId; 036 private PaymentDetail paymentDetail; // PMT_DTL_ID 037 038 private KualiInteger customerNoteLineNbr; // CUST_NTE_LN_NBR 039 private String customerNoteText; // CUST_NTE_TXT 040 041 public PaymentNoteText() { 042 super(); 043 } 044 045 /** 046 * @hibernate.id column="PMT_NTE_ID" generator-class="sequence" 047 * @hibernate.generator-param name="sequence" value="PDP.PDP_PMT_NTE_ID_SEQ" 048 * @return Returns the paymentNoteId. 049 */ 050 public KualiInteger getId() { 051 return id; 052 } 053 054 /** 055 * @param paymentNoteId The paymentNoteId to set. 056 */ 057 public void setId(KualiInteger paymentNoteId) { 058 this.id = paymentNoteId; 059 } 060 061 /** 062 * @return 063 * @hibernate.property column="CUST_NTE_LN_NBR" not-null="true" 064 */ 065 public KualiInteger getCustomerNoteLineNbr() { 066 return customerNoteLineNbr; 067 } 068 069 /** 070 * @return 071 * @hibernate.property column="CUST_NTE_TXT" length="60" not-null="true" 072 */ 073 public String getCustomerNoteText() { 074 return customerNoteText; 075 } 076 077 /** 078 * @return 079 * @hibernate.many-to-one column="PMT_DTL_ID" class="edu.iu.uis.pdp.bo.PaymentDetail" 080 */ 081 public PaymentDetail getPaymentDetail() { 082 return paymentDetail; 083 } 084 085 /** 086 * @param integer 087 */ 088 public void setCustomerNoteLineNbr(KualiInteger integer) { 089 customerNoteLineNbr = integer; 090 } 091 092 /** 093 * @param string 094 */ 095 public void setCustomerNoteText(String string) { 096 customerNoteText = string; 097 } 098 099 /** 100 * @param integer 101 */ 102 public void setPaymentDetail(PaymentDetail pd) { 103 paymentDetail = pd; 104 } 105 106 /** 107 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 108 */ 109 @Override 110 protected LinkedHashMap toStringMapper() { 111 LinkedHashMap m = new LinkedHashMap(); 112 113 m.put(KFSPropertyConstants.ID, this.id); 114 115 return m; 116 } 117 118 }