001package org.kuali.mobility.library.entity;
002
003import javax.persistence.Column;
004import javax.persistence.Entity;
005import javax.persistence.GeneratedValue;
006import javax.persistence.GenerationType;
007import javax.persistence.Id;
008import javax.persistence.Table;
009
010/**
011 * A class representing an hour period
012 * @author Kuali Mobility Team (mobility.collab@kuali.org)
013 * @since 2.3.0
014 */
015@Entity
016@Table(name="LIBRARY_HOUR_PERIOD")
017public class LibraryHourPeriod {
018
019        /**
020         * ID
021         */
022        @Id
023        @GeneratedValue(strategy = GenerationType.TABLE)
024        @Column(name="ID")
025        private Long id;
026        
027        /**
028         * Localisable label
029         */
030        @Column(name="LABEL")
031        private String label;
032        
033        /**
034         * On some UI the order in which periods are displayed is important
035         */
036        @Column(name="ORDR")
037        private int order;
038
039        /**
040         * Gets the id for this <code>LibraryHourPeriod</code>.
041         * @return the id
042         */
043        public Long getId() {
044                return id;
045        }
046
047        /**
048         * Sets the id for this <code>LibraryHourPeriod</code>.
049         * @param id the id to set
050         */
051        public void setId(Long id) {
052                this.id = id;
053        }
054
055        /**
056         * Gets the label for this <code>LibraryHourPeriod</code>.
057         * @return the label
058         */
059        public String getLabel() {
060                return label;
061        }
062
063        /**
064         * Sets the label for this <code>LibraryHourPeriod</code>.
065         * @param label the label to set
066         */
067        public void setLabel(String label) {
068                this.label = label;
069        }
070
071        /**
072         * Gets the order for this <code>LibraryHourPeriod</code>.
073         * @return the order
074         */
075        public int getOrder() {
076                return order;
077        }
078
079        /**
080         * Sets the order for this <code>LibraryHourPeriod</code>.
081         * @param order the order to set
082         */
083        public void setOrder(int order) {
084                this.order = order;
085        }
086        
087}