// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name="customer_potential")
@PrimaryKeyJoinColumn(name="id")
public class CustomerPotential extends Customer {
    private String source;
    public CustomerPotential( ) {
        this(0, "", "", "");
    }
    public CustomerPotential(int id, String name, String phone, String source) {
        super(id, name, phone);
        this.source = source;
    }
    @Column(name="source")
    public String getSource() {
        return source;
    }
    public void setSource(String source) {
        this.source = source;
    }
}
