@Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((id == null) ? 0 : id.hashCode());
   return result;
 }
 @Override
 public int compareTo(NodeSourcePK o) {
   if (id == null && o == null) {
     return 0;
   }
   if (id == null) {
     return -1;
   }
   if (o == null) {
     return 1;
   }
   return id.compareTo(o);
 }
 @Override
 public boolean equals(Object obj) {
   if (this == obj) {
     return true;
   }
   if (obj == null) {
     return false;
   }
   if (getClass() != obj.getClass()) {
     return false;
   }
   GeneralNodeDatumMetadata other = (GeneralNodeDatumMetadata) obj;
   if (id == null) {
     if (other.id != null) {
       return false;
     }
   } else if (!id.equals(other.id)) {
     return false;
   }
   return true;
 }
 /**
  * Convenience setter for {@link NodeSourcePK#setSourceId(String)}.
  *
  * @param sourceId the sourceId to set
  */
 public void setSourceId(String sourceId) {
   if (id == null) {
     id = new NodeSourcePK();
   }
   id.setSourceId(sourceId);
 }
 /**
  * Convenience getter for {@link NodeSourcePK#getSourceId()}.
  *
  * @return the sourceId
  */
 public String getSourceId() {
   return (id == null ? null : id.getSourceId());
 }
 /**
  * Convenience setter for {@link NodeSourcePK#setNodeId(Long)}.
  *
  * @param nodeId the nodeId to set
  */
 public void setNodeId(Long nodeId) {
   if (id == null) {
     id = new NodeSourcePK();
   }
   id.setNodeId(nodeId);
 }
 /**
  * Convenience getter for {@link NodeSourcePK#getNodeId()}.
  *
  * @return the nodeId
  */
 public Long getNodeId() {
   return (id == null ? null : id.getNodeId());
 }