View Javadoc

1   /*
2    * Copyright 2007-2010 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package edu.sampleu.travel.bo;
17  
18  import java.util.LinkedHashMap;
19  
20  import javax.persistence.Column;
21  import javax.persistence.Entity;
22  import javax.persistence.Id;
23  import javax.persistence.Table;
24  
25  import org.kuali.rice.kns.bo.InactivatableFromToImpl;
26  import org.kuali.rice.kns.util.KualiPercent;
27  
28  @Entity
29  @Table(name = "TRV_ACCT_USE_RT")
30  public class TravelAccountUseRate extends InactivatableFromToImpl {
31  
32  	@Id
33  	@Column(name = "id")
34  	private String id;
35  
36  	@Column(name = "acct_num")
37  	private String number;
38  
39  	@Column(name = "rate")
40  	private KualiPercent rate;
41  
42  	public TravelAccountUseRate() {
43  		super();
44  	}
45  
46  	public String getId() {
47  		return this.id;
48  	}
49  
50  	public void setId(String id) {
51  		this.id = id;
52  	}
53  
54  	public String getNumber() {
55  		return this.number;
56  	}
57  
58  	public void setNumber(String number) {
59  		this.number = number;
60  	}
61  
62  	public KualiPercent getRate() {
63  		return this.rate;
64  	}
65  
66  	public void setRate(KualiPercent rate) {
67  		this.rate = rate;
68  	}
69  
70  	@Override
71  	protected LinkedHashMap toStringMapper() {
72          LinkedHashMap propMap = new LinkedHashMap();
73          propMap.put("id", getId());
74          return propMap;
75  	}
76  
77  }