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

package gov.va.oneconsult.seoc.api.model;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

@Entity
@Table(name = "servicehptc")
@IdClass(ServiceHptcId.class)
public final class ServiceHptc
{

public ServiceHptc(){};

public ServiceHptc(ServiceHptcId id)
{
hptc = id.getHptc();
medicarecode = id.getMedicarecode();
}

@Id
@AttributeOverrides({ @AttributeOverride(name = "hptc", column = @Column(name = "hptc")),
@AttributeOverride(name = "medicarecode", column = @Column(name = "medicarecode")) })

private String hptc;

private String medicarecode;

/**
* Description:
*
* @return String
*/
public String getHptc()
{
return hptc;
}

/**
* Description:
*
* @param hptc
*/
public void setHptc(String hptc)
{
this.hptc = hptc;
}

/**
* Description:
*
* @return String
*/
public String getMedicarecode()
{
return medicarecode;
}

/**
* Description:
*
* @param medicarecode
*/
public void setMedicarecode(String medicareCode)
{
this.medicarecode = medicareCode;
}

/**
* {@inheritDoc}
*/
@Override
public int hashCode()
{
final int prime = 31;
int result = 1;
result = prime * result + ((hptc == null) ? 0 : hptc.hashCode());
result = prime * result + ((medicarecode == null) ? 0 : medicarecode.hashCode());
return result;
}

/**
* {@inheritDoc}
*/
@Override
public boolean equals(Object obj)
{
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
ServiceHptc other = (ServiceHptc) obj;
if (hptc == null)
{
if (other.hptc != null)
return false;
} else if (!hptc.equals(other.hptc))
return false;
if (medicarecode == null)
{
if (other.medicarecode != null)
return false;
} else if (!medicarecode.equals(other.medicarecode))
return false;
return true;
}

/**
* {@inheritDoc}
*/
@Override
public String toString()
{
return "ServiceHptc [hptc=" + hptc + ", medicarecode=" + medicarecode + "]";
}

}