/*
 * JPA entity PK template
 */

package de.ivu.elect.business.mandant.entity;

@javax.enterprise.inject.Vetoed
public class MandantPK extends de.ivu.elect.jee.entity.EntityLongPK implements Comparable<MandantPK> {

  private static final long serialVersionUID = 0L;

  public MandantPK() {
    super();
  }

  public MandantPK(java.lang.Long id) {
    super(id);
  }

  @Override
  public String toString(){
    return "MandantPK:"+getId();
  }

  @Override
  public int compareTo(MandantPK o) {
  	if (o == null) {
  		return -1;
  	}
  	if (getId() == null) {
  		if (o.getId() == null) {
  			return 0;
  		}
  		return 1;
  	}
  	if (o.getId() == null) {
  		return -1;
  	}
    return getId().compareTo(o.getId());
  }

}
