org.lnicholls.galleon.database.TheaterShowtimes.java Source code

Java tutorial

Introduction

Here is the source code for org.lnicholls.galleon.database.TheaterShowtimes.java

Source

package org.lnicholls.galleon.database;

import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 * Auto-generated using Hibernate hbm2java tool.
 * Copyright (C) 2005, 2006 Leon Nicholls
 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
 * License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later
 * version.
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 * See the file "COPYING" for more details.
 *     
*/
public class TheaterShowtimes implements Serializable {

    /** nullable persistent field */
    private Date day;

    /** nullable persistent field */
    private String times;

    /** nullable persistent field */
    private org.lnicholls.galleon.database.Movie movie;

    /** full constructor */
    public TheaterShowtimes(Date day, String times, org.lnicholls.galleon.database.Movie movie) {
        this.day = day;
        this.times = times;
        this.movie = movie;
    }

    /** default constructor */
    public TheaterShowtimes() {
    }

    public Date getDay() {
        return this.day;
    }

    public void setDay(Date day) {
        this.day = day;
    }

    public String getTimes() {
        return this.times;
    }

    public void setTimes(String times) {
        this.times = times;
    }

    public org.lnicholls.galleon.database.Movie getMovie() {
        return this.movie;
    }

    public void setMovie(org.lnicholls.galleon.database.Movie movie) {
        this.movie = movie;
    }

    public String toString() {
        return new ToStringBuilder(this).toString();
    }

}