package devopsdistilled.operp.server.data.entity.party;

import java.util.Date;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import devopsdistilled.operp.server.data.entity.Entiti;

@MappedSuperclass
public abstract class Party extends Entiti<Long> {

	private static final long serialVersionUID = 5183636412272320506L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long partyId;

	private String partyName;

	@Temporal(TemporalType.DATE)
	private Date registerdDate;

	public Long getPartyId() {
		return partyId;
	}

	public void setPartyId(Long partyId) {
		this.partyId = partyId;
	}

	public String getPartyName() {
		return partyName;
	}

	public void setPartyName(String partyName) {
		this.partyName = partyName;
	}

	public Date getRegisterdDate() {
		return registerdDate;
	}

	public void setRegisterdDate(Date registerdDate) {
		this.registerdDate = registerdDate;
	}

	@Override
	public Long id() {
		return getPartyId();
	}

	@Override
	public String toString() {
		return new String(getPartyId() + ": " + getPartyName());
	}
}

@@ -605,16 +605,41 @@
 yName;%0A%0A
+%09private String panVat;%0A%0A
 %09@Tempor
@@ -938,32 +938,150 @@
  partyName;%0A%09%7D%0A%0A
+%09public String getPanVat() %7B%0A%09%09return panVat;%0A%09%7D%0A%0A%09public void setPanVat(String panVat) %7B%0A%09%09this.panVat = panVat;%0A%09%7D%0A%0A
 %09public Date get

Add PAN/VAT attribute