package cane.brothers.circus.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Represents a root element in the circus.
 * 
 * @author cane
 */
@Entity
@Table(name = "CIRCUS")
public class Circus extends BaseEntity {

	private String name;
	
	private String address;
	
	private String descr;
	
	//private Map<String, String> tels;
	
	/**
	 * Head of the venue.
	 */
	@Column(name = "HEAD_OF")
	private String head;
	
	public Circus() {
	}

	public String getName() {
		return name;
	}

	public String getAddress() {
		return address;
	}

	public String getDescr() {
		return descr;
	}

	public String getHead() {
		return head;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public void setDescr(String descr) {
		this.descr = descr;
	}

	public void setHead(String head) {
		this.head = head;
	}

}

@@ -130,16 +130,48 @@
 Table;%0A%0A
+import org.joda.time.DateTime;%0A%0A
 /**%0A * R
@@ -512,29 +512,278 @@
 %0A%09%0A%09
-public Circus() %7B%0A%09%7D%0A
+@Column(name = %22FOUNDATION_DATE%22)%0A%09private DateTime foundationDate;%0A%09%0A%09/**%0A%09 * Default constructor%0A%09 */%0A%09public Circus() %7B%0A%09%7D%0A%0A%09public Circus(String name, String address, String descr) %7B%0A%09%09super();%0A%09%09this.name = name;%0A%09%09this.address = address;%0A%09%09this.descr = descr;%0A%09%7D%0A%09
 %0A%09pu

add foundation date