package org.shypl.sna;

import java.io.Serializable;

public abstract class SocialNetwork implements Comparable<SocialNetwork>, Serializable {
	private static final long serialVersionUID = 42;

	private final int      id;
	private final String   code;
	private final String   name;
	private final Currency currency;

	public SocialNetwork(int id, String code, String name, Currency currency) {
		this.id = id;
		this.code = code;
		this.name = name;
		this.currency = currency;
	}

	public int getId() {
		return id;
	}

	public String getCode() {
		return code;
	}

	public String getName() {
		return name;
	}

	public Currency getCurrency() {
		return currency;
	}

	@Override
	public String toString() {
		return code;
	}

	@Override
	public boolean equals(Object obj) {
		return obj == this || obj instanceof SocialNetwork && ((SocialNetwork)obj).id == id;
	}

	@Override
	public int hashCode() {
		return id;
	}

	@Override
	public int compareTo(SocialNetwork other) {
		return Integer.compare(this.getId(), other.getId());
	}
}

@@ -139,21 +139,23 @@
 le %7B%0A%09pr
-ivate
+otected
  static 

make serialVersionUid protected