/*
 * JPA entity PK template
 */

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

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

  private static final long serialVersionUID = 0L;

  public PruefkriteriumPK() {
    super();
  }

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

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

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

}
