package com.javahonk.bean;

// Generated May 22, 2014 2:47:38 PM by Hibernate Tools 3.4.0.CR1

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Mother generated by hbm2java
 */
@Entity
@Table(name = "mother", catalog = "javahonk")
public class Mother implements java.io.Serializable {

	private Integer motherId;
	private String firstName;
	private String lastName;
	private String city;
	private String zip;
	private String state;
	private Set<Child> childs = new HashSet<Child>(0);

	public Mother() {
	}

	public Mother(String firstName, String lastName, String city,
			String zip,String state, Set<Child> childs) {
		this.firstName = firstName;
		this.lastName = lastName;
		this.city = city;
		this.zip = zip;
		this.state = state;
		this.childs = childs;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "mother_id", unique = true, nullable = false)
	public Integer getMotherId() {
		return this.motherId;
	}

	public void setMotherId(Integer motherId) {
		this.motherId = motherId;
	}

	@Column(name = "First_Name", length = 50)
	public String getFirstName() {
		return this.firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	@Column(name = "Last_Name", length = 25)
	public String getLastName() {
		return this.lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	@Column(name = "City", length = 25)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "Zip", length = 25)
	public String getZip() {
		return this.zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	@Column(name = "State", length = 25)
	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "mother")
	public Set<Child> getChilds() {
		return this.childs;
	}

	public void setChilds(Set<Child> childs) {
		this.childs = childs;
	}

}
