001    /*
002     * Copyright 2007-2010 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 edu.sampleu.travel.bo;
017    
018    import java.util.LinkedHashMap;
019    
020    import javax.persistence.Column;
021    import javax.persistence.Entity;
022    import javax.persistence.Id;
023    import javax.persistence.Table;
024    
025    import org.kuali.rice.kns.bo.InactivatableFromToImpl;
026    import org.kuali.rice.kns.util.KualiPercent;
027    
028    @Entity
029    @Table(name = "TRV_ACCT_USE_RT")
030    public class TravelAccountUseRate extends InactivatableFromToImpl {
031    
032            @Id
033            @Column(name = "id")
034            private String id;
035    
036            @Column(name = "acct_num")
037            private String number;
038    
039            @Column(name = "rate")
040            private KualiPercent rate;
041    
042            public TravelAccountUseRate() {
043                    super();
044            }
045    
046            public String getId() {
047                    return this.id;
048            }
049    
050            public void setId(String id) {
051                    this.id = id;
052            }
053    
054            public String getNumber() {
055                    return this.number;
056            }
057    
058            public void setNumber(String number) {
059                    this.number = number;
060            }
061    
062            public KualiPercent getRate() {
063                    return this.rate;
064            }
065    
066            public void setRate(KualiPercent rate) {
067                    this.rate = rate;
068            }
069    
070            @Override
071            protected LinkedHashMap toStringMapper() {
072            LinkedHashMap propMap = new LinkedHashMap();
073            propMap.put("id", getId());
074            return propMap;
075            }
076    
077    }