-
Notifications
You must be signed in to change notification settings - Fork 13
Home
mguymon edited this page Apr 2, 2011
·
20 revisions
<pre>
public class Car {
private String make;
private String manufacturer;
private Integer mileage;
private Map status;
private Wheel wheel;
}
public class CarBlueprint implements Blueprint {
@Default
public String make = "car make";
@Default
public String manufacturer = "car manufacturer";
@Default
public Integer mileage = 100;
@Default
public Map status = new HashMap();
@Mapped
public Wheel wheel;
public Class getTarget() {
return Car.class;
}
public BlueprintTemplate getTemplate() {
return new JavaBeanTemplate();
}
}