class C32DocumentEntity implements Serializable, Comparable<C32DocumentEntity> {

	@Override
	public int compareTo(C32DocumentEntity that) {
		int result = compareNullSafe(this.getIcn(), that.getIcn());
		if (result==0) {
			result = compareNullSafe(this.getCreateDate(), that.getCreateDate());
			if (result==0) {
				result = this.getId()-that.getId();
			}
		}
		return result;
	}

	public  C32DocumentEntity();
	public  C32DocumentEntity(String icn, String documentPatientId, Timestamp creationDate, String document);

}