|
From: trouby <do-...@jb...> - 2006-07-10 16:33:40
|
Hey guys,
I was wondering,
Assuming I have an entity with one_to_many relationship, i.e:
| class X {
| String name;
| Collection<Y> yList;
|
| @Column(name="NAME")
| public long getName() {
| return name;
| }
|
| public void setName(String name) {
| this.name = name;
| }
|
|
| @OneToMany(mappedBy="x")
| public Collection<Y> getyList() {
| return yList;
| }
|
| public setYList(Collection<Y> yList) {
| this.yList = yList;
| }
| }
|
Assuming I'd like to build some web GUI for class X, but except simple fields (such as name) I'd also like to set multiple Y entities to the collection of the X class through a WEB interface,
Does Seam supports this easily? or i'll have to create a 'multiple selectbox' and pass IDs of Y entities, load the Y entities and set them into the collection by myself?
Thanks a lot,
Asaf.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956635#3956635
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956635
|