Indentacion
This commit is contained in:
parent
7a47808614
commit
6fe44d8f65
|
|
@ -21,347 +21,475 @@ import javax.persistence.Transient;
|
||||||
|
|
||||||
import java.sql.Date;
|
import java.sql.Date;
|
||||||
|
|
||||||
/**Clase que implementa la entidad de Hibernate que hace referencia a la tabla TARMREGISTROARMAS*/
|
|
||||||
@Entity(name="TarmRegistroArmas")
|
|
||||||
@Table(name="TARMREGISTROARMAS")
|
|
||||||
public class TarmRegistroArmas extends com.fp.dto.AbstractDataTransport implements Serializable,HibernateBean,Cloneable, Log {
|
|
||||||
/**
|
/**
|
||||||
* HashCode asociado con la Instancia
|
* Clase que implementa la entidad de Hibernate que hace referencia a la tabla TARMREGISTROARMAS
|
||||||
*/
|
*/
|
||||||
@Transient
|
@Entity(name = "TarmRegistroArmas")
|
||||||
private int hashValue = 0;
|
@Table(name = "TARMREGISTROARMAS")
|
||||||
/**
|
public class TarmRegistroArmas extends com.fp.dto.AbstractDataTransport implements Serializable, HibernateBean, Cloneable, Log {
|
||||||
* Version de la Clase
|
|
||||||
*/
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
/**
|
|
||||||
* Clave primaria de la Entidad TarmRegistroArmas
|
|
||||||
*/
|
|
||||||
@Id
|
|
||||||
@Column(name="CREGISTRO" ,nullable=false, updatable=false)
|
|
||||||
private Long pk;
|
|
||||||
@Column(name="PERSONCODE", nullable=true)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Codigo de persona
|
* HashCode asociado con la Instancia
|
||||||
*/
|
*/
|
||||||
private Integer personcode;
|
@Transient
|
||||||
|
private int hashValue = 0;
|
||||||
|
/**
|
||||||
|
* Version de la Clase
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
/**
|
||||||
|
* Clave primaria de la Entidad TarmRegistroArmas
|
||||||
|
*/
|
||||||
|
@Id
|
||||||
|
@Column(name = "CREGISTRO", nullable = false, updatable = false)
|
||||||
|
private Long pk;
|
||||||
|
@Column(name = "PERSONCODE", nullable = true)
|
||||||
|
|
||||||
@Column(name="TIPOREGISTRO", nullable=true)
|
/**
|
||||||
|
* Codigo de persona
|
||||||
|
*/
|
||||||
|
private Integer personcode;
|
||||||
|
|
||||||
/**
|
@Column(name = "TIPOREGISTRO", nullable = true)
|
||||||
* Codigo de catalogo 01 Natural, 02 Juridico
|
|
||||||
*/
|
|
||||||
private String tiporegistro;
|
|
||||||
|
|
||||||
@Column(name="TIPOREGISTROCODIGO", nullable=true)
|
/**
|
||||||
|
* Codigo de catalogo 01 Natural, 02 Juridico
|
||||||
|
*/
|
||||||
|
private String tiporegistro;
|
||||||
|
|
||||||
/**
|
@Column(name = "TIPOREGISTROCODIGO", nullable = true)
|
||||||
* Codigo de tabla de catalogo Codigo de tabla de tipos de Registro
|
|
||||||
*/
|
|
||||||
private String tiporegistrocodigo;
|
|
||||||
|
|
||||||
@Column(name="PAISORIGEN", nullable=true)
|
/**
|
||||||
|
* Codigo de tabla de catalogo Codigo de tabla de tipos de Registro
|
||||||
|
*/
|
||||||
|
private String tiporegistrocodigo;
|
||||||
|
|
||||||
/**
|
@Column(name = "PAISORIGEN", nullable = true)
|
||||||
* Codigo de pais
|
|
||||||
*/
|
|
||||||
private String paisorigen;
|
|
||||||
|
|
||||||
@Column(name="FCREACION", nullable=true)
|
/**
|
||||||
|
* Codigo de pais
|
||||||
|
*/
|
||||||
|
private String paisorigen;
|
||||||
|
|
||||||
/**
|
@Column(name = "FCREACION", nullable = true)
|
||||||
* Fecha de creación del registro
|
|
||||||
|
|
||||||
*/
|
/**
|
||||||
private Date fcreacion;
|
* Fecha de creación del registro
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private Date fcreacion;
|
||||||
|
|
||||||
@Column(name="FABRICANTE", nullable=true)
|
@Column(name = "FABRICANTE", nullable = true)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Nombre del fabricante del arma
|
* Nombre del fabricante del arma
|
||||||
*/
|
*/
|
||||||
private String fabricante;
|
private String fabricante;
|
||||||
|
|
||||||
@Column(name="DUI", nullable=true)
|
@Column(name = "DUI", nullable = true)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* null
|
* null
|
||||||
*/
|
*/
|
||||||
private String dui;
|
private String dui;
|
||||||
|
|
||||||
@Column(name="TOTALFOB", nullable=true)
|
@Column(name = "TOTALFOB", nullable = true)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* null
|
* null
|
||||||
*/
|
*/
|
||||||
private BigDecimal totalfob;
|
private BigDecimal totalfob;
|
||||||
|
|
||||||
@Version
|
@Version
|
||||||
@Column(name="RECORDVERSION", nullable=true)
|
@Column(name = "RECORDVERSION", nullable = true)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* null
|
* null
|
||||||
*/
|
*/
|
||||||
private Integer recordversion;
|
private Integer recordversion;
|
||||||
|
|
||||||
@Column(name="TRAMITE", nullable=true)
|
@Column(name = "TRAMITE", nullable = true)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* null
|
* null
|
||||||
*/
|
*/
|
||||||
private Long tramite;
|
private Long tramite;
|
||||||
|
|
||||||
@Column(name="AEROPUERTOPUERTO", nullable=true)
|
@Column(name = "AEROPUERTOPUERTO", nullable = true)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Nombre del aeropuerto o puerto referente a la importacion
|
* Nombre del aeropuerto o puerto referente a la importacion
|
||||||
*/
|
*/
|
||||||
private String aeropuertopuerto;
|
private String aeropuertopuerto;
|
||||||
|
|
||||||
@Column(name="SOLICITUDNUM", nullable=true)
|
@Column(name = "SOLICITUDNUM", nullable = true)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Numero de la solicitud relacionada con la importacion
|
* Numero de la solicitud relacionada con la importacion
|
||||||
*/
|
*/
|
||||||
private String solicitudnum;
|
private String solicitudnum;
|
||||||
|
|
||||||
@Column(name="FECHASOLICITUD", nullable=true)
|
@Column(name = "FECHASOLICITUD", nullable = true)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fecha de la solicitud
|
* Fecha de la solicitud
|
||||||
*/
|
*/
|
||||||
private Date fechasolicitud;
|
private Date fechasolicitud;
|
||||||
|
|
||||||
/**Contructor por defecto*/
|
/**
|
||||||
public TarmRegistroArmas(){
|
* Contructor por defecto
|
||||||
}
|
*/
|
||||||
/**Contructor de TarmRegistroArmas
|
public TarmRegistroArmas() {
|
||||||
@param pPk Clave Primaria del entity
|
}
|
||||||
*/
|
|
||||||
public TarmRegistroArmas(Long pPk){
|
/**
|
||||||
this();
|
* Contructor de TarmRegistroArmas
|
||||||
pk=pPk;
|
*
|
||||||
}
|
* @param pPk Clave Primaria del entity
|
||||||
/**
|
*/
|
||||||
* Metodo que entrega datos de la tabla dada la clave primaria.
|
public TarmRegistroArmas(Long pPk) {
|
||||||
* @param pEntityManager referencia de la session a obtener datos del bean.
|
this();
|
||||||
* @param pKey Caleve primaria del bean.
|
pk = pPk;
|
||||||
* @return TarmRegistroArmas
|
}
|
||||||
*/
|
|
||||||
public static TarmRegistroArmas find(EntityManager pEntityManager,Object pKey) throws Exception{
|
/**
|
||||||
TarmRegistroArmas obj = pEntityManager.find(TarmRegistroArmas.class,pKey);
|
* Metodo que entrega datos de la tabla dada la clave primaria.
|
||||||
return obj;
|
*
|
||||||
}
|
* @param pEntityManager referencia de la session a obtener datos del bean.
|
||||||
/**Entrega la Clave primaria de TarmRegistroArmas
|
* @param pKey Caleve primaria del bean.
|
||||||
@return El objeto que referencia a la Clave primaria de TarmRegistroArmas
|
* @return TarmRegistroArmas
|
||||||
*/
|
*/
|
||||||
public Long getPk(){
|
public static TarmRegistroArmas find(EntityManager pEntityManager, Object pKey) throws Exception {
|
||||||
return pk;
|
TarmRegistroArmas obj = pEntityManager.find(TarmRegistroArmas.class, pKey);
|
||||||
}
|
return obj;
|
||||||
/**Fija un nuevo valor a la Clave primaria de TarmRegistroArmas
|
}
|
||||||
@param pPk El objeto que referencia a la nueva Clave primaria de TarmRegistroArmas
|
|
||||||
*/
|
/**
|
||||||
public void setPk(Long pPk){
|
* Entrega la Clave primaria de TarmRegistroArmas
|
||||||
pk=pPk;
|
*
|
||||||
}
|
* @return El objeto que referencia a la Clave primaria de TarmRegistroArmas
|
||||||
/**Obtiene el valor de personcode
|
*/
|
||||||
@return valor de personcode*/
|
public Long getPk() {
|
||||||
public Integer getPersoncode(){
|
return pk;
|
||||||
return personcode;
|
}
|
||||||
}
|
|
||||||
/**Fija el valor de personcode
|
/**
|
||||||
@param pPersoncode nuevo Valor de personcode*/
|
* Fija un nuevo valor a la Clave primaria de TarmRegistroArmas
|
||||||
public void setPersoncode(Integer pPersoncode){
|
*
|
||||||
personcode=pPersoncode;
|
* @param pPk El objeto que referencia a la nueva Clave primaria de
|
||||||
}
|
* TarmRegistroArmas
|
||||||
|
*/
|
||||||
/**Obtiene el valor de tiporegistro
|
public void setPk(Long pPk) {
|
||||||
@return valor de tiporegistro*/
|
pk = pPk;
|
||||||
public String getTiporegistro(){
|
}
|
||||||
return tiporegistro;
|
|
||||||
}
|
/**
|
||||||
/**Fija el valor de tiporegistro
|
* Obtiene el valor de personcode
|
||||||
@param pTiporegistro nuevo Valor de tiporegistro*/
|
*
|
||||||
public void setTiporegistro(String pTiporegistro){
|
* @return valor de personcode
|
||||||
tiporegistro=pTiporegistro;
|
*/
|
||||||
}
|
public Integer getPersoncode() {
|
||||||
|
return personcode;
|
||||||
/**Obtiene el valor de tiporegistrocodigo
|
}
|
||||||
@return valor de tiporegistrocodigo*/
|
|
||||||
public String getTiporegistrocodigo(){
|
/**
|
||||||
return tiporegistrocodigo;
|
* Fija el valor de personcode
|
||||||
}
|
*
|
||||||
/**Fija el valor de tiporegistrocodigo
|
* @param pPersoncode nuevo Valor de personcode
|
||||||
@param pTiporegistrocodigo nuevo Valor de tiporegistrocodigo*/
|
*/
|
||||||
public void setTiporegistrocodigo(String pTiporegistrocodigo){
|
public void setPersoncode(Integer pPersoncode) {
|
||||||
tiporegistrocodigo=pTiporegistrocodigo;
|
personcode = pPersoncode;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**Obtiene el valor de paisorigen
|
/**
|
||||||
@return valor de paisorigen*/
|
* Obtiene el valor de tiporegistro
|
||||||
public String getPaisorigen(){
|
*
|
||||||
return paisorigen;
|
* @return valor de tiporegistro
|
||||||
}
|
*/
|
||||||
/**Fija el valor de paisorigen
|
public String getTiporegistro() {
|
||||||
@param pPaisorigen nuevo Valor de paisorigen*/
|
return tiporegistro;
|
||||||
public void setPaisorigen(String pPaisorigen){
|
}
|
||||||
paisorigen=pPaisorigen;
|
|
||||||
}
|
/**
|
||||||
|
* Fija el valor de tiporegistro
|
||||||
/**Obtiene el valor de fcreacion
|
*
|
||||||
@return valor de fcreacion*/
|
* @param pTiporegistro nuevo Valor de tiporegistro
|
||||||
public Date getFcreacion(){
|
*/
|
||||||
return fcreacion;
|
public void setTiporegistro(String pTiporegistro) {
|
||||||
}
|
tiporegistro = pTiporegistro;
|
||||||
/**Fija el valor de fcreacion
|
}
|
||||||
@param pFcreacion nuevo Valor de fcreacion*/
|
|
||||||
public void setFcreacion(Date pFcreacion){
|
/**
|
||||||
fcreacion=pFcreacion;
|
* Obtiene el valor de tiporegistrocodigo
|
||||||
}
|
*
|
||||||
|
* @return valor de tiporegistrocodigo
|
||||||
/**Obtiene el valor de fabricante
|
*/
|
||||||
@return valor de fabricante*/
|
public String getTiporegistrocodigo() {
|
||||||
public String getFabricante(){
|
return tiporegistrocodigo;
|
||||||
return fabricante;
|
}
|
||||||
}
|
|
||||||
/**Fija el valor de fabricante
|
/**
|
||||||
@param pFabricante nuevo Valor de fabricante*/
|
* Fija el valor de tiporegistrocodigo
|
||||||
public void setFabricante(String pFabricante){
|
*
|
||||||
fabricante=pFabricante;
|
* @param pTiporegistrocodigo nuevo Valor de tiporegistrocodigo
|
||||||
}
|
*/
|
||||||
|
public void setTiporegistrocodigo(String pTiporegistrocodigo) {
|
||||||
/**Obtiene el valor de dui
|
tiporegistrocodigo = pTiporegistrocodigo;
|
||||||
@return valor de dui*/
|
}
|
||||||
public String getDui(){
|
|
||||||
return dui;
|
/**
|
||||||
}
|
* Obtiene el valor de paisorigen
|
||||||
/**Fija el valor de dui
|
*
|
||||||
@param pDui nuevo Valor de dui*/
|
* @return valor de paisorigen
|
||||||
public void setDui(String pDui){
|
*/
|
||||||
dui=pDui;
|
public String getPaisorigen() {
|
||||||
}
|
return paisorigen;
|
||||||
|
}
|
||||||
/**Obtiene el valor de totalfob
|
|
||||||
@return valor de totalfob*/
|
/**
|
||||||
public BigDecimal getTotalfob(){
|
* Fija el valor de paisorigen
|
||||||
return totalfob;
|
*
|
||||||
}
|
* @param pPaisorigen nuevo Valor de paisorigen
|
||||||
/**Fija el valor de totalfob
|
*/
|
||||||
@param pTotalfob nuevo Valor de totalfob*/
|
public void setPaisorigen(String pPaisorigen) {
|
||||||
public void setTotalfob(BigDecimal pTotalfob){
|
paisorigen = pPaisorigen;
|
||||||
totalfob=pTotalfob;
|
}
|
||||||
}
|
|
||||||
|
/**
|
||||||
/**Obtiene el valor de recordversion
|
* Obtiene el valor de fcreacion
|
||||||
@return valor de recordversion*/
|
*
|
||||||
public Integer getRecordversion(){
|
* @return valor de fcreacion
|
||||||
return recordversion;
|
*/
|
||||||
}
|
public Date getFcreacion() {
|
||||||
/**Fija el valor de recordversion
|
return fcreacion;
|
||||||
@param pRecordversion nuevo Valor de recordversion*/
|
}
|
||||||
public void setRecordversion(Integer pRecordversion){
|
|
||||||
recordversion=pRecordversion;
|
/**
|
||||||
}
|
* Fija el valor de fcreacion
|
||||||
|
*
|
||||||
/**Obtiene el valor de tramite
|
* @param pFcreacion nuevo Valor de fcreacion
|
||||||
@return valor de tramite*/
|
*/
|
||||||
public Long getTramite(){
|
public void setFcreacion(Date pFcreacion) {
|
||||||
return tramite;
|
fcreacion = pFcreacion;
|
||||||
}
|
}
|
||||||
/**Fija el valor de tramite
|
|
||||||
@param pTramite nuevo Valor de tramite*/
|
/**
|
||||||
public void setTramite(Long pTramite){
|
* Obtiene el valor de fabricante
|
||||||
tramite=pTramite;
|
*
|
||||||
}
|
* @return valor de fabricante
|
||||||
|
*/
|
||||||
/**Obtiene el valor de aeropuertopuerto
|
public String getFabricante() {
|
||||||
@return valor de aeropuertopuerto*/
|
return fabricante;
|
||||||
public String getAeropuertopuerto(){
|
}
|
||||||
return aeropuertopuerto;
|
|
||||||
}
|
/**
|
||||||
/**Fija el valor de aeropuertopuerto
|
* Fija el valor de fabricante
|
||||||
@param pAeropuertopuerto nuevo Valor de aeropuertopuerto*/
|
*
|
||||||
public void setAeropuertopuerto(String pAeropuertopuerto){
|
* @param pFabricante nuevo Valor de fabricante
|
||||||
aeropuertopuerto=pAeropuertopuerto;
|
*/
|
||||||
}
|
public void setFabricante(String pFabricante) {
|
||||||
|
fabricante = pFabricante;
|
||||||
/**Obtiene el valor de solicitudnum
|
}
|
||||||
@return valor de solicitudnum*/
|
|
||||||
public String getSolicitudnum(){
|
/**
|
||||||
return solicitudnum;
|
* Obtiene el valor de dui
|
||||||
}
|
*
|
||||||
/**Fija el valor de solicitudnum
|
* @return valor de dui
|
||||||
@param pSolicitudnum nuevo Valor de solicitudnum*/
|
*/
|
||||||
public void setSolicitudnum(String pSolicitudnum){
|
public String getDui() {
|
||||||
solicitudnum=pSolicitudnum;
|
return dui;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**Obtiene el valor de fechasolicitud
|
/**
|
||||||
@return valor de fechasolicitud*/
|
* Fija el valor de dui
|
||||||
public Date getFechasolicitud(){
|
*
|
||||||
return fechasolicitud;
|
* @param pDui nuevo Valor de dui
|
||||||
}
|
*/
|
||||||
/**Fija el valor de fechasolicitud
|
public void setDui(String pDui) {
|
||||||
@param pFechasolicitud nuevo Valor de fechasolicitud*/
|
dui = pDui;
|
||||||
public void setFechasolicitud(Date pFechasolicitud){
|
}
|
||||||
fechasolicitud=pFechasolicitud;
|
|
||||||
}
|
/**
|
||||||
|
* Obtiene el valor de totalfob
|
||||||
public boolean equals(Object rhs){
|
*
|
||||||
if (rhs == null)return false;
|
* @return valor de totalfob
|
||||||
if (! (rhs instanceof TarmRegistroArmas))return false;
|
*/
|
||||||
TarmRegistroArmas that = (TarmRegistroArmas) rhs;
|
public BigDecimal getTotalfob() {
|
||||||
if (this.getPk() == null || that.getPk() == null)
|
return totalfob;
|
||||||
return false;
|
}
|
||||||
return (this.getPk().equals(that.getPk()));
|
|
||||||
}
|
/**
|
||||||
/**Implementacion del metodo hashCode de la la entidad TarmRegistroArmas
|
* Fija el valor de totalfob
|
||||||
@return el hashCode la instancia
|
*
|
||||||
*/
|
* @param pTotalfob nuevo Valor de totalfob
|
||||||
public int hashCode() {
|
*/
|
||||||
if (this.hashValue == 0){
|
public void setTotalfob(BigDecimal pTotalfob) {
|
||||||
int result = 17;
|
totalfob = pTotalfob;
|
||||||
if (this.getPk() == null){
|
}
|
||||||
result = super.hashCode();
|
|
||||||
}else{
|
/**
|
||||||
result = this.getPk().hashCode();
|
* Obtiene el valor de recordversion
|
||||||
}
|
*
|
||||||
this.hashValue = result;
|
* @return valor de recordversion
|
||||||
|
*/
|
||||||
|
public Integer getRecordversion() {
|
||||||
|
return recordversion;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fija el valor de recordversion
|
||||||
|
*
|
||||||
|
* @param pRecordversion nuevo Valor de recordversion
|
||||||
|
*/
|
||||||
|
public void setRecordversion(Integer pRecordversion) {
|
||||||
|
recordversion = pRecordversion;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene el valor de tramite
|
||||||
|
*
|
||||||
|
* @return valor de tramite
|
||||||
|
*/
|
||||||
|
public Long getTramite() {
|
||||||
|
return tramite;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fija el valor de tramite
|
||||||
|
*
|
||||||
|
* @param pTramite nuevo Valor de tramite
|
||||||
|
*/
|
||||||
|
public void setTramite(Long pTramite) {
|
||||||
|
tramite = pTramite;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene el valor de aeropuertopuerto
|
||||||
|
*
|
||||||
|
* @return valor de aeropuertopuerto
|
||||||
|
*/
|
||||||
|
public String getAeropuertopuerto() {
|
||||||
|
return aeropuertopuerto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fija el valor de aeropuertopuerto
|
||||||
|
*
|
||||||
|
* @param pAeropuertopuerto nuevo Valor de aeropuertopuerto
|
||||||
|
*/
|
||||||
|
public void setAeropuertopuerto(String pAeropuertopuerto) {
|
||||||
|
aeropuertopuerto = pAeropuertopuerto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene el valor de solicitudnum
|
||||||
|
*
|
||||||
|
* @return valor de solicitudnum
|
||||||
|
*/
|
||||||
|
public String getSolicitudnum() {
|
||||||
|
return solicitudnum;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fija el valor de solicitudnum
|
||||||
|
*
|
||||||
|
* @param pSolicitudnum nuevo Valor de solicitudnum
|
||||||
|
*/
|
||||||
|
public void setSolicitudnum(String pSolicitudnum) {
|
||||||
|
solicitudnum = pSolicitudnum;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtiene el valor de fechasolicitud
|
||||||
|
*
|
||||||
|
* @return valor de fechasolicitud
|
||||||
|
*/
|
||||||
|
public Date getFechasolicitud() {
|
||||||
|
return fechasolicitud;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fija el valor de fechasolicitud
|
||||||
|
*
|
||||||
|
* @param pFechasolicitud nuevo Valor de fechasolicitud
|
||||||
|
*/
|
||||||
|
public void setFechasolicitud(Date pFechasolicitud) {
|
||||||
|
fechasolicitud = pFechasolicitud;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean equals(Object rhs) {
|
||||||
|
if (rhs == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!(rhs instanceof TarmRegistroArmas)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
TarmRegistroArmas that = (TarmRegistroArmas) rhs;
|
||||||
|
if (this.getPk() == null || that.getPk() == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return (this.getPk().equals(that.getPk()));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Implementacion del metodo hashCode de la la entidad TarmRegistroArmas
|
||||||
|
*
|
||||||
|
* @return el hashCode la instancia
|
||||||
|
*/
|
||||||
|
public int hashCode() {
|
||||||
|
if (this.hashValue == 0) {
|
||||||
|
int result = 17;
|
||||||
|
if (this.getPk() == null) {
|
||||||
|
result = super.hashCode();
|
||||||
|
} else {
|
||||||
|
result = this.getPk().hashCode();
|
||||||
|
}
|
||||||
|
this.hashValue = result;
|
||||||
|
}
|
||||||
|
return this.hashValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Implementacion toString
|
||||||
|
*/
|
||||||
|
public String toString() {
|
||||||
|
Field[] fs = this.getClass().getDeclaredFields();
|
||||||
|
String data = "";
|
||||||
|
for (Field f : fs) {
|
||||||
|
try {
|
||||||
|
String name = f.getName();
|
||||||
|
if (f.getType().getName().compareTo("java.util.Set") == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (name.compareTo("hashValue") == 0 || name.compareTo("serialVersionUID") == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
data += name + "=" + f.get(this) + ";";
|
||||||
|
} catch (Exception e) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (data.compareTo("") == 0) {
|
||||||
|
data = super.toString();
|
||||||
|
}
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Implementacion de la creacion de un bean en blanco TarmRegistroArmas
|
||||||
|
*/
|
||||||
|
public Object createInstance() {
|
||||||
|
TarmRegistroArmas instance = new TarmRegistroArmas();
|
||||||
|
return instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clona la entidad TarmRegistroArmas
|
||||||
|
*
|
||||||
|
* @see com.fp.dto.hb.HibernateBean#cloneMe()
|
||||||
|
*/
|
||||||
|
public Object cloneMe() throws CloneNotSupportedException {
|
||||||
|
TarmRegistroArmas p = (TarmRegistroArmas) this.clone();
|
||||||
|
return p;
|
||||||
}
|
}
|
||||||
return this.hashValue;
|
|
||||||
}
|
|
||||||
/**Implementacion toString
|
|
||||||
*/
|
|
||||||
public String toString() {
|
|
||||||
Field[]fs=this.getClass().getDeclaredFields();
|
|
||||||
String data="";
|
|
||||||
for(Field f:fs){
|
|
||||||
try{
|
|
||||||
String name=f.getName();
|
|
||||||
if(f.getType().getName().compareTo("java.util.Set")==0)continue;
|
|
||||||
if(name.compareTo("hashValue")==0||name.compareTo("serialVersionUID")==0)continue;
|
|
||||||
data+=name+"="+f.get(this)+";";
|
|
||||||
}catch(Exception e){
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(data.compareTo("")==0){
|
|
||||||
data=super.toString();
|
|
||||||
}
|
|
||||||
return data;
|
|
||||||
}
|
|
||||||
/**Implementacion de la creacion de un bean en blanco TarmRegistroArmas
|
|
||||||
*/
|
|
||||||
public Object createInstance(){
|
|
||||||
TarmRegistroArmas instance=new TarmRegistroArmas();
|
|
||||||
return instance;
|
|
||||||
}
|
|
||||||
/**Clona la entidad TarmRegistroArmas
|
|
||||||
@see com.fp.dto.hb.HibernateBean#cloneMe()
|
|
||||||
*/
|
|
||||||
public Object cloneMe() throws CloneNotSupportedException{
|
|
||||||
TarmRegistroArmas p=(TarmRegistroArmas)this.clone();
|
|
||||||
return p;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue