The following document contains the results of PMD's CPD 3.9.
| File | Line |
|---|---|
| net\sf\imca\model\entities\FoilEntity.java | 38 |
| net\sf\imca\model\entities\MastEntity.java | 39 |
public class MastEntity {
/**
* Object Identifier.
*/
@Id
@GeneratedValue(strategy=GenerationType.TABLE)
private long id;
/**
* The builders version type name for the equipment.
*/
private String type = "";
/**
* Long description of the mast.
*/
private String description = "";
@OneToOne
private EquipmentSupplierEntity builder;
public EquipmentSupplierEntity getBuilder() {
return builder;
}
public void setBuilder(EquipmentSupplierEntity builder) {
this.builder = builder;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
/**
* Override the Object method to give a usable human readable
* representation of the Object.
*/
public String toString(){
StringBuffer buf = new StringBuffer();
buf.append(builder.toString());
if (type.length() > 0) {
buf.append(" " + type);
}
buf.append(" (" + id + ")");
return buf.toString();
}
} | |