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