Here's my Funding class @Entity public class Funding extends BaseEntity implements Labeled {
//BaseEntity is just the generated ID. private String name; private String label; @OneToMany(mappedBy = "funding", cascade=CascadeType.ALL) private List<LineItemFunding> lineItemFundings; @ManyToOne @JoinColumn(name = "ifas_object_code_id", nullable = true) private IfasObjectCode ifasObjectCode; @ManyToOne @JoinColumn(name = "pr_id", nullable = false) private PurchaseRequest purchaseRequest; @Transient private long tempId; public Funding() { tempId = UUID.randomUUID().getLeastSignificantBits(); } public long getTempId() { return tempId; } public void setTempId(long tempId) { this.tempId = tempId; } public PurchaseRequest getPurchaseRequest() { return purchaseRequest; } public void setPurchaseRequest(PurchaseRequest purchaseRequest) { this.purchaseRequest = purchaseRequest; } public IfasObjectCode getIfasObjectCode() { return ifasObjectCode; } public void setIfasObjectCode(IfasObjectCode ifasObjectCode) { this.ifasObjectCode = ifasObjectCode; } public List<LineItemFunding> getLineItemFundings() { return lineItemFundings; } public void setLineItemFundings(List<LineItemFunding> lineItemFundings) { this.lineItemFundings = lineItemFundings; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getLabel() { return _name + " - " + _ifasObjectCode; } -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Selected-Attribute-tp4554181p4557089.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org