Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2005-2013 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.opensource.org/licenses/ecl2.php Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package org.kuali.rice.kew.doctype;
 
 
 
 public class ApplicationDocumentStatusId implements Serializable {
 
     @Column(name="DOC_TYP_ID")
     private String documentTypeId;
     @Column(name="DOC_STAT_NM")
     private String statusName;
 
     public ApplicationDocumentStatusId() {}
 
     public String getDocumentTypeId() { return ; }
 
     public void setDocumentTypeId(String documentTypeId) { this. = documentTypeId; }
     
     public String getStatusName() { return ; }
 
     public void setStatusName(String statusName) { this. = statusName; }
    
This overridden method ...

 
 	public int hashCode() {
 		final int prime = 31;
 		int result = 1;
 		result = prime
 				* result
 				+ ((this. == null) ? 0 : this.
 						.hashCode());
 		result = prime * result
 				+ ((this. == null) ? 0 : this..hashCode());
 		return result;
 	}

This overridden method ...

 
 	public boolean equals(Object obj) {
 		if (this == obj)
 			return true;
 		if (obj == null)
 			return false;
 		if (getClass() != obj.getClass())
 			return false;
 		if (this. == null) {
 			if (other.documentTypeId != null)
 				return false;
 		} else if (!this..equals(other.documentTypeId))
 			return false;
 		if (this. == null) {
 			if (other.statusName != null)
 				return false;
 		} else if (!this..equals(other.statusName))
 			return false;
 		return true;
 	}
 
 /*
     public boolean equals(Object o) {
         if (o == this) return true;
         if (!(o instanceof DocumentTypePolicyId)) return false;
         if (o == null) return false;
         DocumentTypePolicyId pk = (DocumentTypePolicyId) o;
         // TODO: Finish implementing this method.  Compare o to pk and return true or false.
         throw new UnsupportedOperationException("Please implement me!");
     }
 
     public int hashCode() {
         // TODO: Implement this method
        throw new UnsupportedOperationException("Please implement me!");
    }
*/    
New to GrepCode? Check out our FAQ X