You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by angelochen <an...@yahoo.com.hk> on 2011/12/23 13:49:53 UTC
Bean Model and related field
Hi,
I have an entity named 'detail', if I use this:
model = beanModelSource.createDisplayModel(Detail.class, _messages);
this will not include the item field, how to add this item field to the
model? or just a field of item? thanks,
angelo
@Entity
@Table(name = "detail")
public class Detail {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@NonVisual
private Long id;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "item_id")
private Item item;
}
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Bean-Model-and-related-field-tp5097124p5097124.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org