001    /*
002     *  Copyright 2001-2007 Stephen Colebourne
003     *
004     *  Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0
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.joda.time.contrib.hibernate;
017    
018    import java.io.Serializable;
019    
020    import org.joda.time.TimeOfDay;
021    import org.joda.time.YearMonthDay;
022    
023    /**
024     * PO to be stored using hibernate
025     */
026    public class Schedule implements Serializable
027    {
028        private int id;
029        private YearMonthDay startDate;
030            private TimeOfDay nextTime;
031            private TimeOfDay nextTimeMillis;
032    
033            public Schedule()
034        {
035        }
036    
037        public int getId()
038        {
039            return id;
040        }
041    
042        public void setId(int id)
043        {
044            this.id = id;
045        }
046    
047            public YearMonthDay getStartDate()
048            {
049                    return startDate;
050            }
051    
052            public void setStartDate(YearMonthDay startDate)
053            {
054                    this.startDate = startDate;
055            }
056    
057            public TimeOfDay getNextTime()
058            {
059                    return nextTime;
060            }
061    
062            public void setNextTime(TimeOfDay nextTime)
063            {
064                    this.nextTime = nextTime;
065            }
066    
067            public TimeOfDay getNextTimeMillis()
068            {
069                    return nextTimeMillis;
070            }
071    
072            public void setNextTimeMillis(TimeOfDay nextTimeMillis)
073            {
074                    this.nextTimeMillis = nextTimeMillis;
075            }
076    }