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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to