/*
 * JPA entity PK template
 */

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

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

  private static final long serialVersionUID = 0L;

  public EmailVorlagePK() {
    super();
  }

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

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

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

}
