You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2008/03/01 10:45:07 UTC
T5: beaneditform and entities with lookup
Hi,
I found beaneditform a time saver, so far I use it only on simple entities,
how to use it on entities that has a look up, something like following, what
is a best appraoch? thanks.
public class OrderLine {
Long id;
private Item item;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name="item_id")
public Item getItem() {
return item;
}
}
--
View this message in context: http://www.nabble.com/T5%3A-beaneditform-and-entities-with-lookup-tp15773101p15773101.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
Re: T5: beaneditform and entities with lookup
Posted by Marcelo Lotif <ml...@gmail.com>.
This is a very useful feature, I think many developers miss it
It would be nice if Grid support it too
2008/3/2, Howard Lewis Ship <hl...@gmail.com>:
>
> This is not (yet) supported by BeanEditForm. I hope to add this in
> the future, but that will be 5.1 not 5.0.
>
>
> On Sat, Mar 1, 2008 at 1:45 AM, Angelo Chen <an...@yahoo.com.hk>
> wrote:
> >
> > Hi,
> >
> > I found beaneditform a time saver, so far I use it only on simple
> entities,
> > how to use it on entities that has a look up, something like following,
> what
> > is a best appraoch? thanks.
> >
> >
> > public class OrderLine {
> >
> > Long id;
> > private Item item;
> >
> > @ManyToOne(fetch = FetchType.LAZY)
> > @JoinColumn(name="item_id")
> > public Item getItem() {
> > return item;
> > }
> > }
> >
> >
> > --
> > View this message in context:
> http://www.nabble.com/T5%3A-beaneditform-and-entities-with-lookup-tp15773101p15773101.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
> >
> >
>
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Atenciosamente,
Marcelo Lotif
Re: T5: beaneditform and entities with lookup
Posted by Howard Lewis Ship <hl...@gmail.com>.
This is not (yet) supported by BeanEditForm. I hope to add this in
the future, but that will be 5.1 not 5.0.
On Sat, Mar 1, 2008 at 1:45 AM, Angelo Chen <an...@yahoo.com.hk> wrote:
>
> Hi,
>
> I found beaneditform a time saver, so far I use it only on simple entities,
> how to use it on entities that has a look up, something like following, what
> is a best appraoch? thanks.
>
>
> public class OrderLine {
>
> Long id;
> private Item item;
>
> @ManyToOne(fetch = FetchType.LAZY)
> @JoinColumn(name="item_id")
> public Item getItem() {
> return item;
> }
> }
>
>
> --
> View this message in context: http://www.nabble.com/T5%3A-beaneditform-and-entities-with-lookup-tp15773101p15773101.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
>
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org