package de.webshop.kundenverwaltung.domain;

public class Kunde {
	
	private String	Name;
	private String	Vorname;
	private long ID;
	
	public String getName() {
		return Name;
	}
	
	public void setName(String name) {
		Name = name;
	}
	
	public String getVorname() {
		return Vorname;
	}
	
	public void setVorname(String vorname) {
		Vorname = vorname;
	}
	
	public Kunde(String name, String vorname) {
		super();
		Name = name;
		Vorname = vorname;
	}
	
	public long getID()	{
		return ID;
	}
	
	public void setID(long id)	{
		ID = id;
	}
}

package de.webshop.kundenverwaltung.domain;

public class Kunde {
	
	private String	Name;
	private String	Vorname;
	private long	ID;
	
	public String getName() {
		return Name;
	}
	
	public void setName(String name) {
		Name = name;
	}
	
	public String getVorname() {
		return Vorname;
	}
	
	public void setVorname(String vorname) {
		Vorname = vorname;
	}
	
	public Kunde(String name, String vorname) {
		super();
		Name = name;
		Vorname = vorname;
	}
	
	public long getID() {
		return ID;
	}
	
	public void setID(long id) throws Exception {
		if (id < 0)
			throw new Exception();
		
		ID = id;
	}
}

throw new Exception()