Summary Table
Categories |
Total Count |
PII |
0 |
URL |
0 |
DNS |
0 |
EKL |
0 |
IP |
0 |
PORT |
0 |
VsID |
0 |
CF |
0 |
AI |
0 |
VPD |
0 |
PL |
0 |
Other |
0 |
File Content
/*
* Hptc.java
* Copyright (c) 2018 Veterans Affairs.
*/
package gov.va.oneconsult.seoc.api.model;
import java.io.Serializable;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Description: Model object for the table HPTC.
*
* @author Ablevets
*
*/
@SuppressWarnings("serial")
@Entity
@Table(name = "hptc")
@JsonPropertyOrder({ "hptc", "classification", "specialization", "grouping" })
public class Hptc implements Serializable
{
/**
* HPTC. Guaranteed to be not null.
*/
@Id
@Column(name = "hptc")
@Size(max = 10, message = "Hptc value should not exceed 10 characters")
@JsonProperty("hptc")
@NotNull
private String hptc;
/**
* Classification. Guaranteed to be not null.
*/
@Column(name = "classification")
@Size(max = 100, message = "Classification should not exceed 100 characters")
@JsonProperty("classification")
private String classification;
/**
* Specialization. Guaranteed to be not null.
*/
@Column(name = "specialization")
@Size(max = 100, message = "Specialization should not exceed 100 characters")
@JsonProperty("specialization")
private String specialization;
/**
* Grouping. Guaranteed to be not null.
*/
@Column(name = "grouping")
@Size(max = 100, message = "Grouping should not exceed 100 characters")
@JsonProperty("grouping")
private String grouping;
/**
* {@link Seoc} values associated with this Hptc.
*/
@JsonIgnore
@ManyToMany(mappedBy = "hptcs", cascade = { CascadeType.PERSIST, CascadeType.DETACH })
private Set<Seoc> seocs;
/**
* Description: Get Hptc
*
* @return hptc
*/
public String getHptc()
{
return hptc;
}
/**
* Description: Set Hptc
*
* @param hptc
*/
public void setHptc(String hptc)
{
this.hptc = hptc;
}
/**
* Description: Get Classification
*
* @return classification
*/
public String getClassification()
{
return classification;
}
/**
* Description: Set Classification
*
* @param classification
*/
public void setClassification(String classification)
{
this.classification = classification;
}
/**
* Description: Get Specialization
*
* @return specialization
*/
public String getSpecialization()
{
return specialization;
}
/**
* Description: Set Specialization
*
* @param specialization
*/
public void setSpecialization(String specialization)
{
this.specialization = specialization;
}
/**
* Description: Get Grouping
*
* @return grouping
*/
public String getGrouping()
{
return grouping;
}
/**
* Description: Set Grouping
*
* @param grouping
*/
public void setGrouping(String grouping)
{
this.grouping = grouping;
}
/**
* Description: GetSeocs
*
* @return Set<Seoc>
*/
public Set<Seoc> getSeocs()
{
return seocs;
}
/**
* Description: SetSeocs
*
* @param seocs
*/
public void setSeocs(Set<Seoc> seocs)
{
this.seocs = seocs;
}
/**
* {@inheritDoc}
*/
@Override
public int hashCode()
{
final int prime = 31;
int result = 1;
result = prime * result + ((classification == null) ? 0 : classification.hashCode());
result = prime * result + ((grouping == null) ? 0 : grouping.hashCode());
result = prime * result + ((hptc == null) ? 0 : hptc.hashCode());
result = prime * result + ((specialization == null) ? 0 : specialization.hashCode());
return result;
}
/**
* {@inheritDoc}
*/
@Override
public boolean equals(Object obj)
{
if (this == obj)
return true;
if (obj == null)
return false;
if (!(obj instanceof Hptc))
return false;
Hptc other = (Hptc) obj;
if (classification == null)
{
if (other.classification != null)
return false;
} else if (!classification.equals(other.classification))
return false;
if (grouping == null)
{
if (other.grouping != null)
return false;
} else if (!grouping.equals(other.grouping))
return false;
if (hptc == null)
{
if (other.hptc != null)
return false;
} else if (!hptc.equals(other.hptc))
return false;
if (specialization == null)
{
if (other.specialization != null)
return false;
} else if (!specialization.equals(other.specialization))
return false;
return true;
}
/**
* {@inheritDoc}
*/
@Override
public String toString()
{
return "Hptc [hptc=" + hptc + ", classification=" + classification + ", specialization="
+ specialization + ", grouping=" + grouping + "]";
}
}