/*
 * JPA entity PK template
 */

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

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

  private static final long serialVersionUID = 0L;

  public PersonenKonfliktPK() {
    super();
  }

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

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

  @Override
  public int compareTo(PersonenKonfliktPK 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());
  }

}
