001/** 002 * Copyright 2005-2014 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 */ 016package org.kuali.rice.krad.test.document; 017 018import org.kuali.rice.core.api.util.type.KualiDecimal; 019import org.kuali.rice.krad.document.SessionDocument; 020import org.kuali.rice.krad.document.TransactionalDocumentBase; 021 022import javax.persistence.Column; 023import javax.persistence.Entity; 024import javax.persistence.Table; 025import java.sql.Timestamp; 026 027/** 028 * This is a test transactional document for use with testing data dictionary searchable attributes on the doc search. 029 * 030 * @author Kuali Rice Team (rice.collab@kuali.org) 031 */ 032@Entity 033@Table(name="ACCT_DD_ATTR_DOC") 034//@org.hibernate.annotations.TypeDef( 035// name="rice_decimal", 036// typeClass=HibernateKualiDecimalFieldType.class 037// ) 038public class AccountWithDDAttributesDocument extends TransactionalDocumentBase implements SessionDocument { 039 private static final long serialVersionUID = 174220131121010870L; 040 041 @Column(name="ACCT_NUM") 042 private Integer accountNumber; 043 @Column(name="ACCT_OWNR") 044 private String accountOwner; 045 //@Type(type="rice_decimal") 046 @Column(name="ACCT_BAL") 047 private KualiDecimal accountBalance; 048 @Column(name="ACCT_OPN_DAT") 049 private Timestamp accountOpenDate; 050 @Column(name="ACCT_UPDATE_DT_TM") 051 private Timestamp accountUpdateDateTime; 052 @Column(name="ACCT_STAT") 053 private String accountState; 054 //@Type(type="yes_no") 055 @Column(name="ACCT_AWAKE") 056 private boolean accountAwake; 057 058 public Integer getAccountNumber() { 059 return this.accountNumber; 060 } 061 062 public void setAccountNumber(Integer accountNumber) { 063 this.accountNumber = accountNumber; 064 } 065 066 public String getAccountOwner() { 067 return this.accountOwner; 068 } 069 070 public void setAccountOwner(String accountOwner) { 071 this.accountOwner = accountOwner; 072 } 073 074 public KualiDecimal getAccountBalance() { 075 return this.accountBalance; 076 } 077 078 public void setAccountBalance(KualiDecimal accountBalance) { 079 this.accountBalance = accountBalance; 080 } 081 082 public Timestamp getAccountOpenDate() { 083 return this.accountOpenDate; 084 } 085 086 public void setAccountOpenDate(Timestamp accountOpenDate) { 087 this.accountOpenDate = accountOpenDate; 088 } 089 090 public String getAccountState() { 091 return this.accountState; 092 } 093 094 public void setAccountState(String accountState) { 095 this.accountState = accountState; 096 } 097 098 public String getAccountStateMultiselect() { 099 return this.accountState; 100 } 101 102 /** 103 * @return the accountUpdateDateTime 104 */ 105 public Timestamp getAccountUpdateDateTime() { 106 return this.accountUpdateDateTime; 107 } 108 109 /** 110 * @param accountUpdateDateTime the accountUpdateDateTime to set 111 */ 112 public void setAccountUpdateDateTime(Timestamp accountUpdateDateTime) { 113 this.accountUpdateDateTime = accountUpdateDateTime; 114 } 115 116 /** 117 * @return the accountAwake 118 */ 119 public boolean isAccountAwake() { 120 return this.accountAwake; 121 } 122 123 /** 124 * @param accountAwake the accountAwake to set 125 */ 126 public void setAccountAwake(boolean accountAwake) { 127 this.accountAwake = accountAwake; 128 } 129 130}