package gov.va.med.mpn.entity.pojo;
// Generated Sep 16, 2014 3:26:57 PM by Hibernate Tools 4.3.1


import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.OneToMany;

import org.apache.commons.lang.StringUtils;

/**
 * Classification generated by hbm2java
  */
@MappedSuperclass
@SuppressWarnings("serial")
public abstract class ClassificationCore implements java.io.Serializable {


     private Integer id;
     private String className;
     private Boolean valid;
     private Set<CodedControlData> codedControlDatas = new HashSet<CodedControlData>(0);

    public ClassificationCore() {
    }

	
    public ClassificationCore(Integer id, String className, Boolean valid) {
        this.id = id;
        this.className = className;
        this.valid = valid;
    }
    public ClassificationCore(Integer id, String className, Boolean valid, Set<CodedControlData> codedControlDatas) {
       this.id = id;
       this.className = className;
       this.valid = valid;
       this.codedControlDatas = codedControlDatas;
    }
   
     @Id 

    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name="id", nullable=false)
    public Integer getId() {
	        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    
    @Column(name="class_name", unique=true, nullable=false, length=50)
    public String getClassName() {
			return StringUtils.trim(this.className);
    }
    
    public void setClassName(String className) {
        this.className = className;
    }

    
    @Column(name="valid", nullable=false)
    public Boolean getValid() {
	        return this.valid;
    }
    
    public void setValid(Boolean valid) {
        this.valid = valid;
    }

/*@OneToMany(fetch=FetchType.LAZY, mappedBy="classification")
    public Set<CodedControlData> getCodedControlDatas() {
	        return this.codedControlDatas;
    }
    
    public void setCodedControlDatas(Set<CodedControlData> codedControlDatas) {
        this.codedControlDatas = codedControlDatas;
    }*/




}


