package org.compass.gps.device.hibernate.cascade.one;
/**
* Created by IntelliJ IDEA.
* User: mauricenicholson
* Date: Apr 7, 2008
* Time: 9:41:34 PM
* To change this template use File | Settings | File Templates.
*/
public class House {
private Long id;
private Long version;
private String name;
private Roof roof;
private Foundations foundations; // not mapped in Compass!!
public boolean throwError;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getVersion() {
return version;
}
public void setVersion(Long version) {
this.version = version;
}
public String getName() {
if (throwError) {
throw new RuntimeException("This is the error you asked me to throw");
}
return name;
}
public void setName(String name) {
this.name = name;
}
public Roof getRoof() {
return roof;
}
public void setRoof(Roof roof) {
this.roof = roof;
}
public Foundations getFoundations() {
return foundations;
}
public void setFoundations(Foundations foundations) {
this.foundations = foundations;
}
}