edu.uoc.tfc.j2ee.icampanario.grepresenta.persistence.domain
Class EmpowermentDocumentKey

java.lang.Object
  extended by edu.uoc.tfc.j2ee.icampanario.grepresenta.persistence.domain.EmpowermentDocumentKey
All Implemented Interfaces:
java.io.Serializable

public class EmpowermentDocumentKey
extends java.lang.Object
implements java.io.Serializable

Representa la clave primaria de la asociación de un documento y un apoderamiento

Author:
Ismael Campanario Cabrera
See Also:
Serialized Form

Constructor Summary
EmpowermentDocumentKey()
           
 
Method Summary
 boolean equals(java.lang.Object otherOb)
          Metodo equals de esta clase
 java.lang.Long getIdDocument()
          Devuelve el id del documento
 java.lang.Long getIdEmpowerment()
          Devuelve el id del apoderamiento
 int hashCode()
          Hashcode de esta clase
 void setIdDocument(java.lang.Long idDocument)
          Modifica el id del documento
 void setIdEmpowerment(java.lang.Long idEmpowerment)
          Modifica el id del apoderamiento
 java.lang.String toString()
          toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmpowermentDocumentKey

public EmpowermentDocumentKey()
Method Detail

getIdEmpowerment

public java.lang.Long getIdEmpowerment()
Devuelve el id del apoderamiento

Returns:
id del apoderamiento

setIdEmpowerment

public void setIdEmpowerment(java.lang.Long idEmpowerment)
Modifica el id del apoderamiento

Parameters:
idEmpowerment - nuevo id del apoderamiento

getIdDocument

public java.lang.Long getIdDocument()
Devuelve el id del documento

Returns:
id del documento

setIdDocument

public void setIdDocument(java.lang.Long idDocument)
Modifica el id del documento

Parameters:
idDocument - nuevo id del documento

hashCode

public int hashCode()
Hashcode de esta clase

Overrides:
hashCode in class java.lang.Object
Returns:
hashcode

equals

public boolean equals(java.lang.Object otherOb)
Metodo equals de esta clase

Overrides:
equals in class java.lang.Object
Parameters:
otherOb - objeto a comparar
Returns:
si es igual o no

toString

public java.lang.String toString()
toString

Overrides:
toString in class java.lang.Object
Returns:
atributos en string