EventOrganiser.java 4.15 KB
/*
 * Copyright Codecrew Ry
 * 
 * All rights reserved.
 * 
 * This license applies to any software containing a notice placed by the 
 * copyright holder. Such software is herein referred to as the Software. 
 * This license covers modification, distribution and use of the Software. 
 * 
 * Any distribution and use in source and binary forms, with or without 
 * modification is not permitted without explicit written permission from the 
 * copyright owner. 
 * 
 * A non-exclusive royalty-free right is granted to the copyright owner of the 
 * Software to use, modify and distribute all modifications to the Software in 
 * future versions of the Software. 
 * 
 */
package fi.codecrew.moya.model;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.OrderBy;
import javax.persistence.Table;

/**
 * 
 */
@Entity
@Table(name = "event_organiser")
public class EventOrganiser extends GenericEntity {

    private static final long serialVersionUID = 1L;

    @Column(name = "organisation")
    private String organisation;

    @Column(name = "bundle_country")
    private String bundleCountry;

    @OrderBy
    @OneToMany(cascade = CascadeType.ALL, mappedBy = "organiser")
    private List<LanEvent> events;

    @Column(nullable = false, name = "bill_address1")
    private String billAddress1 = "";
    @Column(nullable = false, name = "bill_address2")
    private String billAddress2 = "";
    @Column(nullable = false, name = "bill_address3")
    private String billAddress3 = "";
    @Column(nullable = false, name = "bill_address4")
    private String billAddress4 = "";
    @Column(nullable = false, name = "bank_number1")
    private String bankNumber1 = "";
    @Column(nullable = false, name = "bank_number2")
    private String bankNumber2 = "";
    @Column(nullable = false, name = "bank_name1")
    private String bankName1 = "";
    @Column(nullable = false, name = "bank_name2")
    private String bankName2 = "";

    public List<LanEvent> getEvents() {
        return events;
    }

    public void setEvents(List<LanEvent> eventList) {
        this.events = eventList;
    }

    /**
     * @return the organisation
     */
    public String getOrganisation() {
        return organisation;
    }

    /**
     * @param organisation
     *            the organisation to set
     */
    public void setOrganisation(String organisation) {
        this.organisation = organisation;
    }

    /**
     * @return the bundleCountry
     */
    public String getBundleCountry() {
        return bundleCountry;
    }

    /**
     * @param bundleCountry
     *            the bundleCountry to set
     */
    public void setBundleCountry(String bundleCountry) {
        this.bundleCountry = bundleCountry;
    }

    public String getBillAddress1() {
        return billAddress1;
    }

    public void setBillAddress1(String billAddress1) {
        this.billAddress1 = billAddress1;
    }

    public String getBillAddress2() {
        return billAddress2;
    }

    public void setBillAddress2(String billAddress2) {
        this.billAddress2 = billAddress2;
    }

    public String getBillAddress3() {
        return billAddress3;
    }

    public void setBillAddress3(String billAddress3) {
        this.billAddress3 = billAddress3;
    }

    public String getBillAddress4() {
        return billAddress4;
    }

    public void setBillAddress4(String billAddress4) {
        this.billAddress4 = billAddress4;
    }

    public String getBankNumber1() {
        return bankNumber1;
    }

    public void setBankNumber1(String bankNumber1) {
        this.bankNumber1 = bankNumber1;
    }

    public String getBankNumber2() {
        return bankNumber2;
    }

    public void setBankNumber2(String bankNumber2) {
        this.bankNumber2 = bankNumber2;
    }

    public String getBankName1() {
        return bankName1;
    }

    public void setBankName1(String bankName1) {
        this.bankName1 = bankName1;
    }

    public String getBankName2() {
        return bankName2;
    }

    public void setBankName2(String bankName2) {
        this.bankName2 = bankName2;
    }

}