JobDTO.java :  » GWT » g-mvc » com » mclub » client » model » Java Open Source

Java Open Source » GWT » g mvc 
g mvc » com » mclub » client » model » JobDTO.java
/*
 * Copyleft 2010 Mustafa DUMLUPINAR
 *
 * Distributable under GPL license.
 * See terms of license at gnu.org.
 * http://www.gnu.org/licenses/gpl.html
 *
 * dumlupinar01@gmail.com
 * http://mdpinar.blogspot.com/
 *
 */
package com.mclub.client.model;

import com.gmvc.client.base.IModel;

/**
 * Meslek tanitim modeli
 * 
 * @author mdpinar
 * 
 */
public class JobDTO implements IModel {

  private static final long serialVersionUID = 1L;

  private Long id;
  
  /**
   * Isim alani
   */
  private String name;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  @Override
  public String toString() {
    return this.name;
  }

  @Override
  public boolean equals(Object obj) {
    if (obj != null && obj instanceof JobDTO) {
      JobDTO model = (JobDTO) obj;
      if (model.getId() != null && model.getId().equals(this.id)) {
        return true;
      }
    }
    return super.equals(obj);
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.