001    /*
002     *  Copyright 2001-2008 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.DateTime;
021    import org.joda.time.LocalDate;
022    import org.joda.time.LocalDateTime;
023    import org.joda.time.LocalTime;
024    
025    /**
026     * PO to be stored using hibernate
027     */
028    public class Event implements Serializable
029    {
030        private int id;
031        private DateTime dateTime;
032            private LocalDate localDate;
033            private LocalTime localTime;
034            private LocalTime localTime2;
035            private LocalTime localTime3;
036            private LocalDateTime localDateTime;
037    
038            public Event()
039        {
040        }
041    
042        public int getId()
043        {
044            return id;
045        }
046    
047        public void setId(int id)
048        {
049            this.id = id;
050        }
051    
052        public DateTime getDateTime()
053        {
054            return dateTime;
055        }
056    
057        public void setDateTime(DateTime dateTime)
058        {
059            this.dateTime = dateTime;
060        }
061    
062            public LocalDate getLocalDate()
063            {
064                    return localDate;
065            }
066    
067            public void setLocalDate(LocalDate localDate)
068            {
069                    this.localDate = localDate;
070            }
071    
072            public LocalTime getLocalTime()
073            {
074                    return localTime;
075            }
076    
077            public void setLocalTime(LocalTime localTime)
078            {
079                    this.localTime = localTime;
080            }
081    
082            public LocalTime getLocalTime2()
083            {
084                    return localTime2;
085            }
086    
087            public void setLocalTime2(LocalTime localTime2)
088            {
089                    this.localTime2 = localTime2;
090            }
091    
092            public LocalTime getLocalTime3()
093            {
094                    return localTime3;
095            }
096    
097            public void setLocalTime3(LocalTime localTime3)
098            {
099                    this.localTime3 = localTime3;
100            }
101    
102        public LocalDateTime getLocalDateTime()
103        {
104            return localDateTime;
105        }
106    
107        public void setLocalDateTime(LocalDateTime localDateTime)
108        {
109            this.localDateTime = localDateTime;
110        }
111    }