src/main/java/ru/indvdum/mywork/openjpa/model/Task.java
changeset 7 aaae4f8055f4
parent 6 a0d8aa779e50
child 9 6a02cfcc7460
equal deleted inserted replaced
6:a0d8aa779e50 7:aaae4f8055f4
    30 	private String description = null;
    30 	private String description = null;
    31 
    31 
    32 	public Task(){
    32 	public Task(){
    33 		
    33 		
    34 	}
    34 	}
       
    35 	
       
    36 	@Override
       
    37 	public boolean equals(Object obj) {
       
    38 		if (this == obj)
       
    39 			return true;
       
    40 		if (obj == null)
       
    41 			return false;
       
    42 		if (!(obj instanceof Task))
       
    43 			return false;
       
    44 		final Task other = (Task) obj;
       
    45 		return (this.id == other.id || (this.id != null && this.id.equals(other.id)));
       
    46 	}
    35 
    47 
    36 	public Integer getId() {
    48 	public Integer getId() {
    37 		return id;
    49 		return id;
    38 	}
    50 	}
    39 
    51