You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Tim Fletcher <zi...@gmail.com> on 2011/11/15 17:20:51 UTC

beaneditform and ManyToOne entities

Hi all,

I am trying to do something very similar to the question asked on this
thread:
http://tapestry.1045711.n5.nabble.com/T5-beaneditform-and-entities-with-lookup-td2417060.html

The above thread mentions that this may be available in version >5.1.
However I can't find a way of doing it

So I'm trying to get my beaneditform to display something like a "select"
field for  ManyToOne relationships
(Note i have the opposite relationship in my client class)

@Entity
public class Definition {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@NonVisual
private Long id;
 @ManyToOne(optional=false)
private Client client;
 public Client getClient() {
return client;
}
public void setClient(Client client) {
this.client = client;
}
}

Many thanks,
Tim